@microsoft/fast-element > CompilationStrategy
CompilationStrategy type
A function capable of compiling a template from the preprocessed form produced by the html template function into a result that can instantiate views.
Signature:
export type CompilationStrategy = (
html: string | HTMLTemplateElement,
factories: Record<string, ViewBehaviorFactory>,
policy: DOMPolicy) => TemplateCompilationResult;
References: ViewBehaviorFactory, DOMPolicy, TemplateCompilationResult