hugo/helpers
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
..
baseURL.go helpers, output: Fix spelling 2017-03-28 01:19:46 +02:00
baseURL_test.go all: Propagate baseURL error to the callers 2017-03-27 15:43:56 +02:00
content.go helpers: Delete RenderingContext.getConfig 2017-04-22 22:40:20 +02:00
content_renderer.go
content_renderer_test.go helpers: Delete RenderingContext.getConfig 2017-04-22 22:40:20 +02:00
content_test.go helpers: Delete RenderingContext.getConfig 2017-04-22 22:40:20 +02:00
emoji.go
emoji_test.go
general.go tpl: Add template function namespaces 2017-04-30 10:56:38 +02:00
general_test.go tpl: Add template function namespaces 2017-04-30 10:56:38 +02:00
hugo.go Automate the Hugo release process 2017-04-24 11:08:56 +02:00
hugo_test.go Automate the Hugo release process 2017-04-24 11:08:56 +02:00
language.go
language_test.go
path.go hugolib: Revise paginator alias path handling 2017-03-27 15:43:56 +02:00
path_test.go all: Propagate baseURL error to the callers 2017-03-27 15:43:56 +02:00
pathspec.go all: Propagate baseURL error to the callers 2017-03-27 15:43:56 +02:00
pathspec_test.go all: Propagate baseURL error to the callers 2017-03-27 15:43:56 +02:00
pygments.go
pygments_test.go
testhelpers_test.go all: Propagate baseURL error to the callers 2017-03-27 15:43:56 +02:00
url.go output: Rename HTMLType etc. to HTMLFormat 2017-03-27 15:43:56 +02:00
url_test.go all: Propagate baseURL error to the callers 2017-03-27 15:43:56 +02:00