UNPKG

marko

Version:

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

32 lines (27 loc) 684 B
"use strict"; window.Marko = { Component: function () {} }; /** * Method is for internal usage only. This method * is invoked by code in a compiled Marko template and * it is used to create a new Template instance. * @private */ exports.t = function createTemplate(typeName) { return new Template(typeName); }; function Template(typeName) { this.path = this.R_ = typeName; } var AsyncVDOMBuilder = require("./AsyncVDOMBuilder"); require("../createOut").bc_( Template.prototype.createOut = function createOut( globalData, parent, parentOut) { return new AsyncVDOMBuilder(globalData, parent, parentOut); } ); require("../renderable")(Template.prototype);