mirror of
https://github.com/marko-js/marko.git
synced 2026-02-01 16:07:13 +00:00
Adding ability to use custom context class for rendering
This commit is contained in:
parent
a72fb8f874
commit
882bfcada1
@ -3,8 +3,8 @@
|
||||
|
||||
],
|
||||
|
||||
"globals": {
|
||||
"define": true,
|
||||
"globals": {
|
||||
"define": true,
|
||||
"require": true
|
||||
},
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
"eqeqeq": false,
|
||||
"latedef": true,
|
||||
"unused": true,
|
||||
"strict": false,
|
||||
|
||||
/* Relaxing options: */
|
||||
"eqnull": true
|
||||
|
||||
@ -15,10 +15,10 @@
|
||||
*/
|
||||
/**
|
||||
* This module provides the runtime for rendering compiled templates.
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* <p>The code for the Raptor Templates compiler is kept separately
|
||||
* in the {@link raptor/templating/compiler} module.
|
||||
* in the {@link raptor/templating/compiler} module.
|
||||
*/
|
||||
var Context = require('./Context');
|
||||
|
||||
@ -30,4 +30,10 @@ exports.enableAsyncStackTrace = function() {
|
||||
Context.INCLUDE_STACK = true;
|
||||
};
|
||||
|
||||
exports.Context = Context;
|
||||
|
||||
exports.setContextClass = function(contextClass) {
|
||||
exports.Context = Context = contextClass;
|
||||
};
|
||||
|
||||
exports.Context = Context;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user