Adding ability to use custom context class for rendering

This commit is contained in:
Phil Gates-Idem 2014-05-27 00:51:24 -04:00
parent a72fb8f874
commit 882bfcada1
2 changed files with 13 additions and 6 deletions

View File

@ -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

View File

@ -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;