aboutsummaryrefslogtreecommitdiff
path: root/lib/output.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output.js')
-rw-r--r--lib/output.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/output.js b/lib/output.js
index 8521d7ef..73a63c7d 100644
--- a/lib/output.js
+++ b/lib/output.js
@@ -1486,6 +1486,19 @@ function OutputStream(options) {
DEFPRINT(AST_This, function(output) {
output.print("this");
});
+ DEFPRINT(AST_Template, function(output) {
+ var self = this;
+ if (self.tag) self.tag.print(output);
+ output.print("`");
+ for (var i = 0; i < self.expressions.length; i++) {
+ output.print(self.strings[i]);
+ output.print("${");
+ self.expressions[i].print(output);
+ output.print("}");
+ }
+ output.print(self.strings[i]);
+ output.print("`");
+ });
DEFPRINT(AST_Constant, function(output) {
output.print(this.value);
});