mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Expose context.util object for providing helper functions
This commit is contained in:
parent
3a841cd8df
commit
80e963e1b8
@ -409,4 +409,8 @@ class CompileContext {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CompileContext.prototype.util = {
|
||||||
|
isValidJavaScriptIdentifier: require('./util/isValidJavaScriptIdentifier')
|
||||||
|
};
|
||||||
|
|
||||||
module.exports = CompileContext;
|
module.exports = CompileContext;
|
||||||
Loading…
x
Reference in New Issue
Block a user