Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function registerPartial(
registry: JitRegistry,
name: string,
source: string
): PartialDefinition {
let definition = new PartialDefinition(name, preprocess(source));
registry.register('partial', name, definition);
return definition;
}
registerPartial(name: string, source: string): PartialDefinition {
let definition = new PartialDefinition(name, this.preprocess(source));
this.resolver.register('partial', name, definition);
return definition;
}
export function registerPartial(
registry: TestJitRegistry,
name: string,
source: string
): PartialDefinition {
let definition = new PartialDefinition(name, preprocess(source));
registry.register('partial', name, definition);
return definition;
}
private _lookupPartial(name: string, meta: OwnedTemplateMeta): PartialDefinition {
let templateFactory = lookupPartial(name, meta.owner);
let template = templateFactory(meta.owner);
return new PartialDefinition(name, template);
}