diff --git a/frontend/index.html b/frontend/index.html index 5efed59..054157d 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -6,9 +6,20 @@ + {{ range (list "webfonts/fa-solid-900.woff2" "webfonts/fa-brands-400.woff2" "lato-v20-latin-ext_latin-regular.woff2" "lato-v20-latin-ext_latin-700.woff2") }} + {{ end }} + + @@ -39,7 +50,8 @@
diff --git a/tplFuncs.go b/tplFuncs.go index 6e6fb91..62df749 100644 --- a/tplFuncs.go +++ b/tplFuncs.go @@ -11,7 +11,8 @@ import ( var ( sriCacheStore = newSRICache() tplFuncs = template.FuncMap{ - "SRIHash": assetSRIHash, + "list": func(args ...string) []string { return args }, + "assetSRI": assetSRIHash, } )