diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-13 22:33:14 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-14 00:29:25 -0500 |
commit | 0edce6e1d1555cfbe0c55908261fc304a145f1a1 (patch) | |
tree | a9bc592ed7ddbc71ef42e640d4065dcb533c3fd0 /lib/handlebars/runtime.js | |
parent | d95725d5fd57636078583791705cfa814bdf2258 (diff) | |
download | handlebars.js-0edce6e1d1555cfbe0c55908261fc304a145f1a1.zip handlebars.js-0edce6e1d1555cfbe0c55908261fc304a145f1a1.tar.gz handlebars.js-0edce6e1d1555cfbe0c55908261fc304a145f1a1.tar.bz2 |
Inherit compat flag for partials
Diffstat (limited to 'lib/handlebars/runtime.js')
-rw-r--r-- | lib/handlebars/runtime.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/runtime.js b/lib/handlebars/runtime.js index ec54f53..de6ea1b 100644 --- a/lib/handlebars/runtime.js +++ b/lib/handlebars/runtime.js @@ -40,7 +40,7 @@ export function template(templateSpec, env) { if (result == null && env.compile) { var options = { helpers: helpers, partials: partials, data: data }; - partials[name] = env.compile(partial, { data: data !== undefined }, env); + partials[name] = env.compile(partial, { data: data !== undefined, compat: templateSpec.compat }, env); result = partials[name](context, options); } if (result != null) { @@ -125,7 +125,7 @@ export function template(templateSpec, env) { data = initData(context, data); } var depths; - if (templateSpec.depths) { + if (templateSpec.useDepths) { depths = [context]; } |