UNPKG

taggedjs

Version:

tagged template reactive html

18 lines 773 B
import { getTemplaterResult } from '../getTemplaterResult.function.js'; import { newSupportByTemplater } from '../../render/update/processTag.function.js'; import { PropWatches } from '../../tagJsVars/tag.function.js'; export function oneRenderToSupport(wrapper, subject, ownerSupport) { const templater = getTemplaterResult(PropWatches.DEEP); templater.tagJsType = wrapper.tagJsType; const support = newSupportByTemplater(templater, ownerSupport, subject); let tag; function wrap() { templater.tag = tag || wrapper(); return support; } templater.wrapper = wrap; wrap.tagJsType = wrapper.tagJsType; wrap.original = wrapper.original || wrapper; return support; } //# sourceMappingURL=oneRenderToSupport.function.js.map