summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders D. Johnson <adjohnson916@users.noreply.github.com>2015-12-23 15:28:46 -0600
committerLon Ingram <lawnsea@gmail.com>2016-11-11 12:01:16 -0600
commit577b760b50a1bdfe050578568a5c93b0c8a57e56 (patch)
tree06e7050a9f8287a2b03f1b2ec72ed24d22e570df
parent8c198744972054d8f92697530eee02ebd01511fe (diff)
downloadhandlebars.js-577b760b50a1bdfe050578568a5c93b0c8a57e56.zip
handlebars.js-577b760b50a1bdfe050578568a5c93b0c8a57e56.tar.gz
handlebars.js-577b760b50a1bdfe050578568a5c93b0c8a57e56.tar.bz2
Fix typos on decorators-api.md.
-rw-r--r--docs/decorators-api.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/decorators-api.md b/docs/decorators-api.md
index e14a33f..566c7eb 100644
--- a/docs/decorators-api.md
+++ b/docs/decorators-api.md
@@ -2,9 +2,9 @@
Decorators allow for blocks to be annotated with metadata or wrapped in functionality prior to execution of the block. This may be used to communicate with the containing helper or to setup a particular state in the system prior to running the block.
-Decorators are registered through similar methods as helpers, `registerDecorators` and `unregisterDecorators`. These can then be referenced via the friendly name in the template using the `{{* decorator}}` and `{{#* decorator}}{/decorator}}` syntaxes. These syntaxs are derivitives of the normal mustache syntax and as such have all of the same argument and whitespace behaviors.
+Decorators are registered through similar methods as helpers, `registerDecorators` and `unregisterDecorators`. These can then be referenced via the friendly name in the template using the `{{* decorator}}` and `{{#* decorator}}{/decorator}}` syntaxes. These syntaxes are derivatives of the normal mustache syntax and as such have all of the same argument and whitespace behaviors.
-Decorators are executed when the block program is instantiated and are passed `(program, props, container, context, data, blockParams, depths)`
+Decorators are executed when the block program is instantiated and are passed `(program, props, container, context, data, blockParams, depths)`.
- `program`: The block to wrap
- `props`: Object used to set metadata on the final function. Any values set on this object will be set on the function, regardless of if the original function is replaced or not. Metadata should be applied using this object as values applied to `program` may be masked by subsequent decorators that may wrap `program`.