UNPKG

marko

Version:

UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.

12 lines (9 loc) 406 B
"use strict"; var ComponentsContext = require("../../../runtime/components/ComponentsContext"); var getComponentsContext = ComponentsContext.___getComponentsContext; module.exports = function endComponent(out, componentDef) { if (componentDef.___renderBoundary) { out.w("<!--" + out.global.runtimeId + "/-->"); getComponentsContext(out).___isPreserved = componentDef.___parentPreserved; } };