mirror of
https://github.com/Luzifer/cloudkeys-go.git
synced 2024-11-09 14:40:05 +00:00
Remove template directory from bindata
This commit is contained in:
parent
1bee5f4117
commit
d256f5f0d4
2 changed files with 1 additions and 9 deletions
|
@ -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)
|
||||
|
|
2
main.go
2
main.go
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue