diff options
author | kpdecker <kpdecker@gmail.com> | 2015-08-03 15:59:53 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2015-08-03 15:59:53 -0500 |
commit | 5d4b8da344ab5060205678375df298a3d738e862 (patch) | |
tree | 376491aa30d6cbcd22c54f64711573daf43d8981 /lib/handlebars/compiler/helpers.js | |
parent | 279e038ba7ff7e5966a60e36d326e2d4c310f0c6 (diff) | |
download | handlebars.js-5d4b8da344ab5060205678375df298a3d738e862.zip handlebars.js-5d4b8da344ab5060205678375df298a3d738e862.tar.gz handlebars.js-5d4b8da344ab5060205678375df298a3d738e862.tar.bz2 |
Pass undefined fields to helpers in strict mode
This allows for `{{helper foo}}` to still operate under strict mode when `foo` is not defined on the context. This allows helpers to perform whatever existence checks they please so patterns like `{{#if foo}}{{foo}}{{/if}}` can be used to protect against missing values.
Fixes #1063
Diffstat (limited to 'lib/handlebars/compiler/helpers.js')
0 files changed, 0 insertions, 0 deletions