UNPKG

@tempots/dom

Version:

Fully-typed frontend framework alternative to React and Angular

12 lines (11 loc) 447 B
import { CompiledTemplate, TemplateNode } from './types'; /** * Walk a renderable tree with kind metadata and build a DOM template * programmatically (no innerHTML — avoids HTML parser normalization * issues with `<tr>`, `<td>`, etc.). * * Returns null if the tree contains an unknown kind that can't be templated. * * @internal */ export declare function buildTemplate(renderable: TemplateNode, doc: Document): CompiledTemplate | null;