hugo/tpl
Cameron Moore 2d0650dbd9 tpl: Add custom index function
This commit adds a custom index template function that deviates from the stdlib
simply by not returning an "index out of range" error if an array, slice or
string index is out of range.  Instead, we just return nil values.  This should
help make the new default function more useful for Hugo users.

Fixes #1949
2016-03-10 17:47:59 +01:00
..
reflect_helpers.go Make where accept slice 2016-03-06 13:15:07 +01:00
template.go Add support for Go 1.6 block keyword in templates 2016-03-10 10:53:54 +01:00
template_embedded.go Add autostart option to YouTube shortcode 2016-01-29 16:23:41 -05:00
template_funcs.go tpl: Add custom index function 2016-03-10 17:47:59 +01:00
template_funcs_test.go tpl: Add custom index function 2016-03-10 17:47:59 +01:00
template_resources.go tpl: Unexport the rest of the internal template funcs 2016-03-04 01:00:41 +01:00
template_resources_test.go tpl: Unexport the rest of the internal template funcs 2016-03-04 01:00:41 +01:00
template_test.go Add support for Go 1.6 block keyword in templates 2016-03-10 10:53:54 +01:00