Add dictionary function to be passed into a template
authorNotZippy <notzippy@gmail.com>
Fri, 2 Oct 2015 15:30:21 +0000 (08:30 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 9 Oct 2015 16:29:16 +0000 (18:29 +0200)
commit3a27cefec1beb8e2e49ec206264d7d19cde0ffae
tree2ccff71ff9cc0e24563a960f191faefbf6fc694b
parentccd83c3040771ea496d41b63fa8cba2cecd46f0f
Add dictionary function to be passed into a template

Allows templates to dynamically build maps.

Example usage: Creating and passing a map to a subtemplate while in a range on the parent.
docs/content/templates/functions.md
tpl/template_funcs.go
tpl/template_funcs_test.go