Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
preprocess(locator: ModuleLocator, input: string): SerializedTemplateBlock {
let options = { meta: locator, plugins: { ast: this.plugins } };
let ast = preprocess(input, options);
let template = TemplateCompiler.compile(ast, input);
return template.toJSON();
}