summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2012-07-05 23:10:39 -0700
committerYehuda Katz <wycats@gmail.com>2012-07-05 23:10:39 -0700
commit36b242a710fe8b401cd6f2a2c3fe1031c7ba1ebc (patch)
tree3afa79b331300f6492486c22e0aa0bdaac9f8ac4 /lib/handlebars/compiler/compiler.js
parent659be5a6904cd21ecfc0a697057793ede1a33ca6 (diff)
downloadhandlebars.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.js6
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'));
},