definately fix #13

This commit is contained in:
Henrique Dias 2016-08-04 21:49:49 +01:00
parent 7ad38ca2ac
commit cf1b563243
3 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,7 @@
{{ if ne .Config.StyleSheet "" }}
<style>
{{ Safe .Config.StyleSheet }}
{{ CSS .Config.StyleSheet }}
</style>
{{ end }}
</head>

View File

@ -76,8 +76,8 @@ func (p Page) PrintAsHTML(w http.ResponseWriter, templates ...string) (int, erro
// execute the template if there aren't errors
functions := template.FuncMap{
"Defined": variables.Defined,
"Safe": func(s string) template.HTML {
return template.HTML(s)
"CSS": func(s string) template.CSS {
return template.CSS(s)
},
}