diff options
author | kpdecker <kpdecker@gmail.com> | 2015-08-19 06:59:32 -0700 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2015-08-22 10:59:34 -0700 |
commit | 408192ba9f262bb82be88091ab3ec3c16dc02c6d (patch) | |
tree | 5fb9fa403eba8b1e078096b14aaeebf5e8026292 /docs/compiler-api.md | |
parent | 2a4a5447f560723a2c898e0a4d97cd929131bba6 (diff) | |
download | handlebars.js-408192ba9f262bb82be88091ab3ec3c16dc02c6d.zip handlebars.js-408192ba9f262bb82be88091ab3ec3c16dc02c6d.tar.gz handlebars.js-408192ba9f262bb82be88091ab3ec3c16dc02c6d.tar.bz2 |
Add decorator parsing
Diffstat (limited to 'docs/compiler-api.md')
-rw-r--r-- | docs/compiler-api.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/compiler-api.md b/docs/compiler-api.md index 81438d2..5722dcc 100644 --- a/docs/compiler-api.md +++ b/docs/compiler-api.md @@ -120,6 +120,33 @@ interface CommentStatement <: Statement { } ``` + +```java +interface Decorator <: Statement { + type: "Decorator"; + + path: PathExpression | Literal; + params: [ Expression ]; + hash: Hash; + + strip: StripFlags | null; +} + +interface DecoratorBlock <: Statement { + type: "DecoratorBlock"; + path: PathExpression | Literal; + params: [ Expression ]; + hash: Hash; + + program: Program | null; + + openStrip: StripFlags | null; + closeStrip: StripFlags | null; +} +``` + +Decorator paths only utilize the `path.original` value and as a consequence do not support depthed evaluation. + ### Expressions ```java |