summaryrefslogtreecommitdiffstats
path: root/docs/compiler-api.md
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-08-19 08:27:13 -0700
committerkpdecker <kpdecker@gmail.com>2015-08-22 10:59:34 -0700
commit452afbf2ffdf32a6d7112b727cc95cc6b415e8a5 (patch)
treec24b4162e48c3de66c36d7160530cab710e77d24 /docs/compiler-api.md
parent408192ba9f262bb82be88091ab3ec3c16dc02c6d (diff)
downloadhandlebars.js-452afbf2ffdf32a6d7112b727cc95cc6b415e8a5.zip
handlebars.js-452afbf2ffdf32a6d7112b727cc95cc6b415e8a5.tar.gz
handlebars.js-452afbf2ffdf32a6d7112b727cc95cc6b415e8a5.tar.bz2
Implement block decorators
These allow for a given block to be wrapped in helper methods or metadata and allow for more control over the current container and method before the code is run.
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 5722dcc..2938219 100644
--- a/docs/compiler-api.md
+++ b/docs/compiler-api.md
@@ -276,7 +276,7 @@ The `Handlebars.JavaScriptCompiler` object has a number of methods that may be c
- `parent` is the existing code in the path resolution
- `name` is the current path component
- - `type` is the type of name being evaluated. May be one of `context`, `data`, `helper`, or `partial`.
+ - `type` is the type of name being evaluated. May be one of `context`, `data`, `helper`, `decorator`, or `partial`.
Note that this does not impact dynamic partials, which implementors need to be aware of. Overriding `VM.resolvePartial` may be required to support dynamic cases.