mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Expose hasExpression
This commit is contained in:
parent
37bbc0d51f
commit
7591bbd7cb
@ -147,6 +147,9 @@ TemplateCompiler.prototype = {
|
||||
isExpression: function (expression) {
|
||||
return expression instanceof Expression;
|
||||
},
|
||||
hasExpression: function(str) {
|
||||
return expressionParser.hasExpression(str);
|
||||
},
|
||||
makeExpression: function (expression) {
|
||||
if (this.isExpression(expression)) {
|
||||
return expression;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user