diff options
author | Yehuda Katz <wycats@gmail.com> | 2012-07-05 22:43:05 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2012-07-05 22:43:05 -0700 |
commit | 72e05d623c07cc3a812528d52fb6d325134efee4 (patch) | |
tree | 8eec0d2b12cb9faaeea22a76fd0c045457669f7c /lib/handlebars/compiler/ast.js | |
parent | ff1547ea049e5b4b499dfa8d4d450567a91f5505 (diff) | |
download | handlebars.js-72e05d623c07cc3a812528d52fb6d325134efee4.zip handlebars.js-72e05d623c07cc3a812528d52fb6d325134efee4.tar.gz handlebars.js-72e05d623c07cc3a812528d52fb6d325134efee4.tar.bz2 |
Add support for @data variables
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index d61377e..25abe0a 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -93,6 +93,11 @@ var Handlebars = require('./base'); this.isSimple = parts.length === 1 && !this.isScoped && depth === 0; }; + Handlebars.AST.DataNode = function(id) { + this.type = "DATA"; + this.id = id; + }; + Handlebars.AST.StringNode = function(string) { this.type = "STRING"; this.string = string; |