mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
25 lines
572 B
JavaScript
25 lines
572 B
JavaScript
'use strict';
|
|
var documentProvider = require('./document-provider');
|
|
|
|
var runtime;
|
|
|
|
function setRuntime(_runtime) {
|
|
runtime = _runtime;
|
|
}
|
|
exports._setRuntime = setRuntime;
|
|
|
|
function createOut(globalData) {
|
|
return runtime.createOut(globalData);
|
|
}
|
|
|
|
/**
|
|
* Used to associate a DOM Document with marko. This is needed
|
|
* to parse HTML fragments to insert into the VDOM tree.
|
|
*/
|
|
exports.setDocument = function(newDoc) {
|
|
documentProvider.document = newDoc;
|
|
};
|
|
|
|
exports.createOut = createOut;
|
|
exports.load = require('./loader');
|
|
exports.events = require('./events'); |