diff options
author | Yehuda Katz <wycats@gmail.com> | 2012-07-05 23:10:39 -0700 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2012-07-05 23:10:39 -0700 |
commit | 36b242a710fe8b401cd6f2a2c3fe1031c7ba1ebc (patch) | |
tree | 3afa79b331300f6492486c22e0aa0bdaac9f8ac4 /lib/handlebars/compiler/compiler.js | |
parent | 659be5a6904cd21ecfc0a697057793ede1a33ca6 (diff) | |
download | handlebars.js-36b242a710fe8b401cd6f2a2c3fe1031c7ba1ebc.zip handlebars.js-36b242a710fe8b401cd6f2a2c3fe1031c7ba1ebc.tar.gz handlebars.js-36b242a710fe8b401cd6f2a2c3fe1031c7ba1ebc.tar.bz2 |
Document lookupData
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 0dea5bb..ca59725 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -653,6 +653,12 @@ Handlebars.JavaScriptCompiler = function() {}; }); }, + // [lookupData] + // + // On stack, before: ... + // On stack, after: data[id], ... + // + // Push the result of looking up `id` on the current data lookupData: function(id) { this.pushStack(this.nameLookup('data', id, 'data')); }, |