add commands to the front end; inject json user data; close #24
This commit is contained in:
1 parent
408fa2e86f
commit
7c3a55c386
3 files changed
+24
-15
No files matched your search
@@ -80,6 +80,10 @@ func (p Page) PrintAsHTML(w http.ResponseWriter, templates ...string) (int, erro
|
||||
"CSS": func(s string) template.CSS {
|
||||
return template.CSS(s)
|
||||
},
|
||||
"Marshal": func(v interface{}) template.JS {
|
||||
a, _ := json.Marshal(v)
|
||||
return template.JS(a)
|
||||
},
|
||||
}
|
||||
|
||||
if p.Minimal {
|
||||
|
||||
Reference in new issue
Block a user