definately fix #13
This commit is contained in:
parent
7ad38ca2ac
commit
cf1b563243
File diff suppressed because one or more lines are too long
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
{{ if ne .Config.StyleSheet "" }}
|
{{ if ne .Config.StyleSheet "" }}
|
||||||
<style>
|
<style>
|
||||||
{{ Safe .Config.StyleSheet }}
|
{{ CSS .Config.StyleSheet }}
|
||||||
</style>
|
</style>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -76,8 +76,8 @@ func (p Page) PrintAsHTML(w http.ResponseWriter, templates ...string) (int, erro
|
||||||
// execute the template if there aren't errors
|
// execute the template if there aren't errors
|
||||||
functions := template.FuncMap{
|
functions := template.FuncMap{
|
||||||
"Defined": variables.Defined,
|
"Defined": variables.Defined,
|
||||||
"Safe": func(s string) template.HTML {
|
"CSS": func(s string) template.CSS {
|
||||||
return template.HTML(s)
|
return template.CSS(s)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue