Added Templates.AddTemplate

This commit is contained in:
DiddiZ committed 2017-01-19 11:36:10 +01:00
1 parent 50f4836e44
commit 4a01aaf9bd
2 files changed
+12 -5

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
package Templates
//AddTemplate adds a template to the template cache so it can be used by ProcessHTML
func AddTemplate(src string) error {
_, err := templates.Parse(src)
return err
}