mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #50 Initialize the loader after the runtime is fully initialized
This commit is contained in:
parent
b575c6bd4f
commit
e3e2a26834
@ -30,11 +30,7 @@ var asyncWriter = require('async-writer');
|
|||||||
// that are available in every template (empty, notEmpty, etc.)
|
// that are available in every template (empty, notEmpty, etc.)
|
||||||
var helpers = require('./helpers');
|
var helpers = require('./helpers');
|
||||||
|
|
||||||
// The loader is used to load templates that have not already been
|
var loader;
|
||||||
// loaded and cached. On the server, the loader will use
|
|
||||||
// the compiler to compile the template and then load the generated
|
|
||||||
// module file using the Node.js module loader
|
|
||||||
var loader = require('./loader');
|
|
||||||
|
|
||||||
// If the optional "stream" module is available
|
// If the optional "stream" module is available
|
||||||
// then Readable will be a readable stream
|
// then Readable will be a readable stream
|
||||||
@ -246,3 +242,9 @@ exports.createWriter = function(writer) {
|
|||||||
exports.helpers = helpers;
|
exports.helpers = helpers;
|
||||||
|
|
||||||
exports.Template = Template;
|
exports.Template = Template;
|
||||||
|
|
||||||
|
// The loader is used to load templates that have not already been
|
||||||
|
// loaded and cached. On the server, the loader will use
|
||||||
|
// the compiler to compile the template and then load the generated
|
||||||
|
// module file using the Node.js module loader
|
||||||
|
loader = require('./loader');
|
||||||
Loading…
x
Reference in New Issue
Block a user