Marko v3: Expose context.util object for providing helper functions

This commit is contained in:
Patrick Steele-Idem 2016-02-11 14:59:28 -07:00
parent 3a841cd8df
commit 80e963e1b8

View File

@ -409,4 +409,8 @@ class CompileContext {
}
}
CompileContext.prototype.util = {
isValidJavaScriptIdentifier: require('./util/isValidJavaScriptIdentifier')
};
module.exports = CompileContext;