summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/runtime.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-08-13 22:33:14 -0500
committerkpdecker <kpdecker@gmail.com>2014-08-14 00:29:25 -0500
commit0edce6e1d1555cfbe0c55908261fc304a145f1a1 (patch)
treea9bc592ed7ddbc71ef42e640d4065dcb533c3fd0 /lib/handlebars/runtime.js
parentd95725d5fd57636078583791705cfa814bdf2258 (diff)
downloadhandlebars.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.js4
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];
}