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);
|
||||
};
|
||||
ret.child = function(i) {
|
||||
ret._setup = function(options) {
|
||||
if (!compiled) {
|
||||
compiled = compileInput();
|
||||
}
|
||||
return compiled.child(i);
|
||||
return compiled._setup(options);
|
||||
};
|
||||
ret._child = function(i) {
|
||||
if (!compiled) {
|
||||
compiled = compileInput();
|
||||
}
|
||||
return compiled._child(i);
|
||||
};
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user