Make Where template-method accept methodname as key
authorbep <bjorn.erik.pedersen@gmail.com>
Wed, 5 Nov 2014 17:45:02 +0000 (18:45 +0100)
committerspf13 <steve.francia@gmail.com>
Thu, 13 Nov 2014 17:42:26 +0000 (12:42 -0500)
commit8ad9c0a7dd26513dd597040276ac34bf00830813
tree43afbae202eb0feea9447949e103aa387ac257ef
parentfdae09070bd2a64671ef004ef8d9d89c1298a900
Make Where template-method accept methodname as key

This is necessary to make constructs like `{{ range first 1 (where .Data.Pages "Type" "post") }}` -- as Type and Section is methods not fields.
hugolib/template.go
hugolib/template_test.go