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 all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
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 helpers: Use iterate operator by int in Emojify 2016-11-23 09:13:00 +01:00
emoji_test.go helpers: Fix bug in emoji renderer 2016-08-30 00:34:48 +02:00
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 all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
language_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
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 all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pygments_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
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