summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/utils.js
diff options
context:
space:
mode:
authorRyan Grove <ryan@wonko.com>2011-04-20 16:56:37 -0700
committerRyan Grove <ryan@wonko.com>2011-04-20 16:56:37 -0700
commitdec196b4d913cde7b5e6030ca62fc3f3457ca642 (patch)
tree4a33eec696b0c96b52fb322ce5d58d172b0ff8c6 /lib/handlebars/utils.js
parent038d9b3feed51bc12db95af0e0ef8b69776b42c9 (diff)
downloadhandlebars.js-dec196b4d913cde7b5e6030ca62fc3f3457ca642.zip
handlebars.js-dec196b4d913cde7b5e6030ca62fc3f3457ca642.tar.gz
handlebars.js-dec196b4d913cde7b5e6030ca62fc3f3457ca642.tar.bz2
The "if" block helper shouldn't treat empty arrays as truthy.
Given the data {foo: []}, the following template previously considered foo to be truthy when it shouldn't have: {{#if foo}} You should not see me! {{else}} You should see me! {{/if}}
Diffstat (limited to 'lib/handlebars/utils.js')
0 files changed, 0 insertions, 0 deletions