Expose setup wrappers for compiled templates
This commit is contained in:
@@ -457,11 +457,17 @@ export function compile(input, options, env) {
|
|||||||
}
|
}
|
||||||
return compiled.call(this, context, options);
|
return compiled.call(this, context, options);
|
||||||
};
|
};
|
||||||
ret.child = function(i) {
|
ret._setup = function(options) {
|
||||||
if (!compiled) {
|
if (!compiled) {
|
||||||
compiled = compileInput();
|
compiled = compileInput();
|
||||||
}
|
}
|
||||||
return compiled.child(i);
|
return compiled._setup(options);
|
||||||
|
};
|
||||||
|
ret._child = function(i) {
|
||||||
|
if (!compiled) {
|
||||||
|
compiled = compileInput();
|
||||||
|
}
|
||||||
|
return compiled._child(i);
|
||||||
};
|
};
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user