Add SafeJS template function
authorCameron Moore <moorereason@gmail.com>
Sun, 15 Nov 2015 20:30:57 +0000 (14:30 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 20 Nov 2015 20:12:01 +0000 (21:12 +0100)
commitc5a4c07b892128f36ec4638bfd44e5404437e066
tree19b202505f75a44adbad8da11244a53e13248f4e
parent7c9a2dfee242481f37b30d5f053ee3275126e9dd
Add SafeJS template function

This commit adds a SafeJS template function.  Tests and documentation are
included.

Fixes #1579
docs/content/templates/functions.md
tpl/template_funcs.go
tpl/template_funcs_test.go