hugo/tpl
Jimmy Sawczuk fbf48824ae tpl: Add a querify function to generate query strings inside templates
The query function will take a set of parameters specified like a dict and return a url.Values object which can be .Encode'd into a query string.

Example:

<a href="http://www.google.com?{{ (querify "q" "test" "page" 3).Encode | safeHTML }}">Search</a>

Returns:

<a href="http://www.google.com?page=3&q=test">Search</a>

Closes #2257
2016-07-05 19:52:45 +02:00
..
reflect_helpers.go Make where accept slice 2016-03-06 13:15:07 +01:00
template.go Add readFile template func 2016-03-31 21:24:18 +02:00
template_embedded.go Allow picking a specific file out of a gist 2016-03-11 18:29:07 +01:00
template_funcs.go tpl: Add a querify function to generate query strings inside templates 2016-07-05 19:52:45 +02:00
template_funcs_test.go tpl: Add a querify function to generate query strings inside templates 2016-07-05 19:52:45 +02:00
template_resources.go tpl: Do not write to cache when ignoring cache 2016-04-14 10:48:26 +02:00
template_resources_test.go tpl: Do not write to cache when ignoring cache 2016-04-14 10:48:26 +02:00
template_test.go Add readFile template func 2016-03-31 21:24:18 +02:00