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:
parent
1bee5f4117
commit
d256f5f0d4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user