fromTree() / fromMarkup()
Create DOM fragment factories from compiler tree IR or trusted markup.
ts
interface CompiledTemplateDescriptor {
readonly kind: "compiled";
readonly markup: string;
readonly namespace: Namespace;
}
declare function fromTree(
structure: readonly Tree[] | CompiledTemplateDescriptor,
flags?: Namespace,
): () => DocumentFragment;
declare function fromMarkup(markup: string, flags?: Namespace): () => DocumentFragment;