@@ -145,6 +145,8 @@ JavaScriptCompiler.prototype = {
|
||||
} else {
|
||||
ret = ret.toString();
|
||||
}
|
||||
} else {
|
||||
ret.compilerOptions = this.options;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
||||
@@ -44,7 +44,7 @@ export function template(templateSpec, env) {
|
||||
|
||||
if (result == null && env.compile) {
|
||||
var options = { helpers: helpers, partials: partials, data: data, depths: depths };
|
||||
partials[name] = env.compile(partial, { data: data !== undefined, compat: templateSpec.compat }, env);
|
||||
partials[name] = env.compile(partial, templateSpec.compilerOptions, env);
|
||||
result = partials[name](context, options);
|
||||
}
|
||||
if (result != null) {
|
||||
|
||||
Reference in New Issue
Block a user