hugo/tpl/tplimpl
Cameron Moore de7c32a1a8 tpl: Add template function namespaces
This commit moves almost all of the template functions into separate
packages under tpl/ and adds a namespace framework.  All changes should
be backward compatible for end users, as all existing function names in
the template funcMap are left intact.

Seq and DoArithmatic have been moved out of the helpers package and into
template namespaces.

Most of the tests involved have been refactored, and many new tests have
been written.  There's still work to do, but this is a big improvement.

I got a little overzealous and added some new functions along the way:

- strings.Contains
- strings.ContainsAny
- strings.HasSuffix
- strings.TrimPrefix
- strings.TrimSuffix

Documentation is forthcoming.

Fixes #3042
2017-04-30 10:56:38 +02:00
..
ace.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
amber_compiler.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
template.go tplimpl: Allow text partials in HTML templates 2017-04-16 09:17:47 +02:00
template_ast_transformers.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
template_ast_transformers_test.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
template_embedded.go tplimpl: Add translation links to the default sitemap template 2017-04-22 22:37:14 +02:00
template_funcs.go tpl: Add template function namespaces 2017-04-30 10:56:38 +02:00
template_funcs_test.go tpl: Add template function namespaces 2017-04-30 10:56:38 +02:00
template_test.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
templateFuncster.go tpl: Add template function namespaces 2017-04-30 10:56:38 +02:00
templateProvider.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00