mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Marko v3: Expose convenience method for getting a reference to the escapeXmlAttr helper
This commit is contained in:
parent
396c9794f3
commit
d60d82ddc5
@ -146,6 +146,10 @@ class Generator {
|
||||
this.context.addStaticCode(code);
|
||||
}
|
||||
|
||||
getEscapeXmlAttrVar() {
|
||||
return this.context.getEscapeXmlAttrVar();
|
||||
}
|
||||
|
||||
importModule(varName, path) {
|
||||
return this.context.importModule(varName, path);
|
||||
}
|
||||
|
||||
@ -168,6 +168,10 @@ class CompileContext {
|
||||
return this._staticCode;
|
||||
}
|
||||
|
||||
getEscapeXmlAttrVar() {
|
||||
return this.addStaticVar('escapeXmlAttr', '__helpers.xa');
|
||||
}
|
||||
|
||||
getTagDef(tagName) {
|
||||
var taglibLookup = this.taglibLookup;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user