marko
Version:
UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.
11 lines (9 loc) • 341 B
JavaScript
;
var ComponentsContext = require("../../../runtime/components/ComponentsContext");
var getComponentsContext = ComponentsContext.T_;
module.exports = function endComponent(out, componentDef) {
if (componentDef.t_) {
out.w("<!--" + out.global.runtimeId + "/-->");
getComponentsContext(out).v_ = componentDef.x_;
}
};