Add plainify template function
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 3 Mar 2016 14:53:15 +0000 (15:53 +0100)
committerSteve Francia <steve.francia@gmail.com>
Tue, 22 Mar 2016 00:27:25 +0000 (20:27 -0400)
commite5e1bcc271246fa96ea8ffdb6a8bbc879cf296ce
tree63ad82c79b2153a1f0c116f3b7fdce5e69f0fca6
parente5aa47749157e4c49a645d37df89fa76b0e8f952
Add plainify template function

To strip away any HTML. May be useful for the .Title in head etc.

People may shoot themself in the foot with this, maybe ...

The replacement function is pretty fast.
docs/content/templates/functions.md
tpl/template_funcs.go
tpl/template_funcs_test.go