go-ssb-room/web/embedded_dev.go

24 lines
487 B
Go
Raw Permalink Normal View History

// SPDX-FileCopyrightText: 2021 The NGI Pointer Secure-Scuttlebutt Team of 2020/2021
//
2021-02-09 11:53:33 +00:00
// SPDX-License-Identifier: MIT
2021-02-04 16:21:21 +00:00
// +build dev
package web
import (
"net/http"
"path/filepath"
"go.mindeco.de/goutils"
)
2021-02-08 11:57:14 +00:00
const Production = false
// absolute path of where this package is located
var pkgDir = goutils.MustLocatePackage("github.com/ssbc/go-ssb-room/v2/web")
var Templates = http.Dir(filepath.Join(pkgDir, "templates"))
var Assets = http.Dir(filepath.Join(pkgDir, "assets"))