1
0
mirror of https://github.com/Luzifer/cloudkeys-go.git synced 2024-09-18 23:22:59 +00:00

Remove template directory from bindata

This commit is contained in:
Knut Ahlers 2017-01-22 14:39:50 +01:00
parent 1bee5f4117
commit d256f5f0d4
Signed by: luzifer
GPG Key ID: DC2729FDD34BE99E
2 changed files with 1 additions and 9 deletions

View File

@ -27,14 +27,6 @@ func httpHelper(f httpHelperFunc) http.HandlerFunc {
}
if template != nil {
// Postponed until https://github.com/flosch/pongo2/issues/68
//
// tplsrc, err := Asset("templates/" + *template)
// if err != nil {
// fmt.Printf("ERR: Could not find template '%s'\n", *template)
// http.Error(res, "An error ocurred.", http.StatusInternalServerError)
// return
// }
ts := pongo2.NewSet("frontend")
ts.SetBaseDirectory("templates")
tpl, err := ts.FromFile(*template)

View File

@ -1,6 +1,6 @@
package main // import "github.com/Luzifer/cloudkeys-go"
//go:generate go-bindata assets templates
//go:generate go-bindata assets
import (
"crypto/sha1"