tpl: Add replaceRE function
authorCameron Moore <moorereason@gmail.com>
Mon, 8 Feb 2016 22:57:52 +0000 (16:57 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 11 Mar 2016 18:59:18 +0000 (19:59 +0100)
commitb8d3651242947bbea46df8d6a9f0477406070019
treeb1776a513647626966f798d9ea77f1f645383dc4
parente9008b91fa0d5b0cc79c1133cd3658134ed6777d
tpl: Add replaceRE function

This commit addes a `replaceRE` template function.  Regexp patterns are compiled
once and cached.
docs/content/templates/functions.md
tpl/template_funcs.go
tpl/template_funcs_test.go