summaryrefslogtreecommitdiffstats
path: root/docs/compiler-api.md
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-01-18 17:27:27 -0600
committerkpdecker <kpdecker@gmail.com>2015-01-18 17:27:27 -0600
commit884bf1553663734f22ffcd9d758c9d71d4373bf9 (patch)
tree55d078077b9c23779858282dfe42dd3a42bd7c0d /docs/compiler-api.md
parent999da739a66199483ffc4d82426550aee5ac798f (diff)
downloadhandlebars.js-884bf1553663734f22ffcd9d758c9d71d4373bf9.zip
handlebars.js-884bf1553663734f22ffcd9d758c9d71d4373bf9.tar.gz
handlebars.js-884bf1553663734f22ffcd9d758c9d71d4373bf9.tar.bz2
Avoid direct references to sexpr in statements
This allows us to avoid creating unnecessary AST nodes and avoids things like isHelper. Side effect of these changes is that @data functions can now have data parameters passed to them.
Diffstat (limited to 'docs/compiler-api.md')
-rw-r--r--docs/compiler-api.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/compiler-api.md b/docs/compiler-api.md
index 39bcacd..3593228 100644
--- a/docs/compiler-api.md
+++ b/docs/compiler-api.md
@@ -204,7 +204,7 @@ function ImportScanner() {
ImportScanner.prototype = new Visitor();
ImportScanner.prototype.PartialStatement = function(partial) {
- this.partials.push({request: partial.sexpr.original});
+ this.partials.push({request: partial.name.original});
Visitor.prototype.PartialStatement.call(this, partial);
};