tpl: Add partialCached template function
authorCameron Moore <moorereason@gmail.com>
Mon, 10 Oct 2016 22:03:30 +0000 (17:03 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 11 Oct 2016 21:56:06 +0000 (23:56 +0200)
commit474eb454dfb6e150d0a7a79edf32906f7a2355d8
treec3961719193210b0dae400804a1b65edb7077e5f
parentd2bc64bee3190d5f1850bec45bf7f51375f13c79
tpl: Add partialCached template function

Supports an optional variant string parameter so that a given partial
will be cached based upon the name+variant.

Fixes #1368
Closes #2552
tpl/template_funcs.go
tpl/template_funcs_test.go