26 lines
584 B
Go
26 lines
584 B
Go
// +build dev
|
|
|
|
/*
|
|
This is the development version of the templates, where they are read directly from the local filesystem.
|
|
|
|
to use this pass '-tags dev' to your go build or test commands.
|
|
*/
|
|
|
|
package web
|
|
|
|
import (
|
|
"net/http"
|
|
"path/filepath"
|
|
|
|
"go.mindeco.de/goutils"
|
|
)
|
|
|
|
const Production = false
|
|
|
|
// absolute path of where this package is located
|
|
var pkgDir = goutils.MustLocatePackage("github.com/ssb-ngi-pointer/gossb-rooms/web")
|
|
|
|
var Templates http.FileSystem = http.Dir(filepath.Join(pkgDir, "templates"))
|
|
|
|
var Assets http.FileSystem = http.Dir(filepath.Join(pkgDir, "assets"))
|