diff options
Diffstat (limited to 'renderer')
-rw-r--r-- | renderer/renderer.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go index f1595a5..c6b3189 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -129,6 +129,10 @@ func raw(s string) template.HTML { return template.HTML(s) } +func rawCSS(s string) template.CSS { + return template.CSS(s) +} + type Renderer interface { Render(ctx *Context, writer io.Writer, page string, data interface{}) (err error) } @@ -150,6 +154,7 @@ func NewRenderer(templateGlobPattern string) (r *renderer, err error) { "WithContext": withContext, "HTML": template.HTMLEscapeString, "Raw": raw, + "RawCSS": rawCSS, }).ParseGlob(templateGlobPattern) if err != nil { return |