go-ssb-room/web/embedded_dev.go

22 lines
410 B
Go

// SPDX-License-Identifier: MIT
// +build dev
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/go-ssb-room/v2/web")
var Templates = http.Dir(filepath.Join(pkgDir, "templates"))
var Assets = http.Dir(filepath.Join(pkgDir, "assets"))