import * as fs from 'fs' import * as util from 'util' import { Processor, ProcessingFunction } from 'template-processor' import xjs_DocumentFragment from './DocumentFragment.class' import xjs_HTMLElement from './HTMLElement.class' /** * @deprecated XXX{DEPRECATED} : use {@link ProcessingFunction} instead. */ export type RenderingFunction = (this: any, frag: DocumentFragment, data: T, opts: U) => void /** * Wrapper for HTML `template` element. * @see https://www.w3.org/TR/html52/semantics-scripting.html#htmltemplateelement */ export default class xjs_HTMLTemplateElement extends xjs_HTMLElement { /** * Read an HTML string and return the first `