diff options
author | tomhuda <tomhuda@tilde.io> | 2012-07-12 10:07:10 -0700 |
---|---|---|
committer | tomhuda <tomhuda@tilde.io> | 2012-07-12 10:07:10 -0700 |
commit | f79af6bfa3081187907c2615ddc3708915b5e44c (patch) | |
tree | 6dea69aaece417a85ab6445a32671d3119883423 /lib/handlebars/compiler/printer.js | |
parent | 92b6c1401a95a1550524d264b1e5f4494f9a587f (diff) | |
parent | efb1e25690e5c05b1d1662d72cac31f3cb90b67f (diff) | |
download | handlebars.js-f79af6bfa3081187907c2615ddc3708915b5e44c.zip handlebars.js-f79af6bfa3081187907c2615ddc3708915b5e44c.tar.gz handlebars.js-f79af6bfa3081187907c2615ddc3708915b5e44c.tar.bz2 |
Merge branch 'master' of github.com:wycats/handlebars.js
Diffstat (limited to 'lib/handlebars/compiler/printer.js')
-rw-r--r-- | lib/handlebars/compiler/printer.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js index 8157190..7a42a66 100644 --- a/lib/handlebars/compiler/printer.js +++ b/lib/handlebars/compiler/printer.js @@ -111,6 +111,10 @@ Handlebars.PrintVisitor.prototype.ID = function(id) { } }; +Handlebars.PrintVisitor.prototype.DATA = function(data) { + return "@" + data.id; +}; + Handlebars.PrintVisitor.prototype.content = function(content) { return this.pad("CONTENT[ '" + content.string + "' ]"); }; |