Add relURL template func

Fixes #1126
This commit is contained in:
bep
2015-05-11 13:59:06 +02:00
parent be0cbeee7f
commit bec839e652
3 changed files with 62 additions and 1 deletions

View File

@@ -1197,6 +1197,7 @@ func init() {
"safeCSS": SafeCSS,
"safeURL": SafeURL,
"absURL": func(a string) template.HTML { return template.HTML(helpers.AbsURL(a)) },
"relURL": func(a string) template.HTML { return template.HTML(helpers.RelURL(a)) },
"markdownify": Markdownify,
"first": First,
"where": Where,