summaryrefslogtreecommitdiffhomepage
path: root/.gitignore
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2016-10-24 22:29:48 +0200
committerBjørn Erik Pedersen <[email protected]>2016-11-22 17:33:52 +0100
commite1da7cb3204c6d232f4a1bdbf89ce75d8459a8b8 (patch)
treedbba1de243b63069da3c3f7a88a6532c0b77b773 /.gitignore
parenta5b3b076570eb87b856be964f36c3ef19fe1d7e2 (diff)
downloadhugo-e1da7cb3204c6d232f4a1bdbf89ce75d8459a8b8.tar.gz
hugo-e1da7cb3204c6d232f4a1bdbf89ce75d8459a8b8.zip
Fix case issues with Params
There are currently several Params and case related issues floating around in Hugo. This is very confusing for users and one of the most common support questions on the forum. And while there have been done some great leg work in Viper etc., this is of limited value since this and similar doesn't work: `Params.myCamelCasedParam` Hugo has control over all the template method invocations, and can take care of all the lower-casing of the map lookup keys. But that doesn't help with direct template lookups of type `Site.Params.TWITTER_CONFIG.USER_ID`. This commit solves that by doing some carefully crafted modifications of the templates' AST -- lowercasing the params keys. This is low-level work, but it's not like the template API wil change -- and this is important enough to defend such "bit fiddling". Tests are added for all the template engines: Go templates, Ace and Amber. Fixes #2615 Fixes #1129 Fixes #2590
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 633c10820..5b726dc04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@ cover.out
.DS_Store
*~
vendor/*/
+*.bench \ No newline at end of file