hugo/tpl
Tatsushi Demachi dd732e84f4 Add nil comparison to where tpl function
`where` template function's internal condition check function always
returns `false` when a target value doesn't exist or it's nil value but
this behavior makes it difficult to filter values which doesn't have a
particular parameter.

To solve it, this adds nil value comparison to the function.
`where Values ".Param.key" nil` like clause can be used for the case
above.

Only "=", "==", "eq", "!=", "<>", "ne" operators are allowed to be used
with `nil`. If an other operator is passed with `nil`, the condition
check function returns `false` like before.

Fix #1232
2015-06-29 19:50:45 +02:00
..
template.go Use helpers.GetThemeDir() to find base templates. 2015-06-25 18:05:43 +02:00
template_embedded.go Set s.Info.LastChange to Lastmod 2015-05-15 13:10:11 +02:00
template_funcs.go Add nil comparison to where tpl function 2015-06-29 19:50:45 +02:00
template_funcs_test.go Add nil comparison to where tpl function 2015-06-29 19:50:45 +02:00
template_resources.go GetJSON/GetCSV: Add retry on invalid content 2015-06-01 12:05:16 +02:00
template_resources_test.go GetJSON/GetCSV: Add retry on invalid content 2015-06-01 12:05:16 +02:00
template_test.go Add some Ace test cases 2015-05-31 13:13:28 +02:00