hugo/tpl/tplimpl
Bjørn Erik Pedersen 5c5384916e tpl/tplimpl: Reimplement the ".Params tolower" template transformer
All `.Params` are stored lowercase, but it should work to access them `.Page.camelCase` etc. There was, however, some holes in the logic with the old transformer.

This commit fixes that by applying a blacklist instead of the old whitelist logic. `.Param` is a very distinct key. The original case will be kept in `.Data.Params.myParam`, but other than that it will be lowercased.

Fixes #5068
2018-08-14 17:54:48 +02:00
..
embedded tpl: Suppress blank lines from opengraph internal template 2018-08-12 12:27:38 -06:00
ace.go Fix broken shortcodes for Ace and Amber 2017-11-18 10:41:31 +01:00
amber_compiler.go tpl: Rework to handle both text and HTML templates 2017-04-02 23:13:10 +02:00
template.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
template_ast_transformers.go tpl/tplimpl: Reimplement the ".Params tolower" template transformer 2018-08-14 17:54:48 +02:00
template_ast_transformers_test.go tpl/tplimpl: Reimplement the ".Params tolower" template transformer 2018-08-14 17:54:48 +02:00
template_funcs.go tpl/partials: Add templates.Exists 2018-07-31 13:28:15 +02:00
template_funcs_test.go Add a newScratch template func 2018-07-06 17:51:38 +02:00
template_test.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
templateFuncster.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00
templateProvider.go Add Hugo Piper with SCSS support and much more 2018-07-06 11:46:12 +02:00