diff options
author | Kevin Decker <kpdecker@gmail.com> | 2015-08-23 23:45:17 -0500 |
---|---|---|
committer | Kevin Decker <kpdecker@gmail.com> | 2015-08-23 23:45:17 -0500 |
commit | c727e1f97c471ec6be26b54dcd7422fd521a2471 (patch) | |
tree | 0979b5f54c7e98b317545a573d43ec6e8566d576 /docs/compiler-api.md | |
parent | 2571dd8e8e43fd320672763564b16a5b3ae33966 (diff) | |
parent | 1c274088c1ea9969f7a676fd5bebd11698f73116 (diff) | |
download | handlebars.js-c727e1f97c471ec6be26b54dcd7422fd521a2471.zip handlebars.js-c727e1f97c471ec6be26b54dcd7422fd521a2471.tar.gz handlebars.js-c727e1f97c471ec6be26b54dcd7422fd521a2471.tar.bz2 |
Merge pull request #1076 from wycats/partial-block
Implement partial blocks
Diffstat (limited to 'docs/compiler-api.md')
-rw-r--r-- | docs/compiler-api.md | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/compiler-api.md b/docs/compiler-api.md index c09414f..81438d2 100644 --- a/docs/compiler-api.md +++ b/docs/compiler-api.md @@ -83,10 +83,23 @@ interface PartialStatement <: Statement { name: PathExpression | SubExpression; params: [ Expression ]; hash: Hash; - + indent: string; strip: StripFlags | null; } + +interface PartialBlockStatement <: Statement { + type: "PartialBlockStatement"; + name: PathExpression | SubExpression; + params: [ Expression ]; + hash: Hash; + + program: Program | null; + + indent: string; + openStrip: StripFlags | null; + closeStrip: StripFlags | null; +} ``` `name` will be a `SubExpression` when tied to a dynamic partial, i.e. `{{> (foo) }}`, otherwise this is a path or literal whose `original` value is used to lookup the desired partial. |