summaryrefslogtreecommitdiffstats
path: root/docs/compiler-api.md
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2015-08-14 15:18:52 -0500
committerkpdecker <kpdecker@gmail.com>2015-08-22 10:59:08 -0700
commit91ffd32cad32b2d1cd310ff94f65b28c428206ac (patch)
tree13cb346dfb0e6dc72dc6dddbcdf3ed8e61ebaeff /docs/compiler-api.md
parent2571dd8e8e43fd320672763564b16a5b3ae33966 (diff)
downloadhandlebars.js-91ffd32cad32b2d1cd310ff94f65b28c428206ac.zip
handlebars.js-91ffd32cad32b2d1cd310ff94f65b28c428206ac.tar.gz
handlebars.js-91ffd32cad32b2d1cd310ff94f65b28c428206ac.tar.bz2
Implement partial blocks
This allows for failover for missing partials as well as limited templating ability through the `{{> @partial-block }}` partial special case. Partial fix for #1018
Diffstat (limited to 'docs/compiler-api.md')
-rw-r--r--docs/compiler-api.md14
1 files changed, 13 insertions, 1 deletions
diff --git a/docs/compiler-api.md b/docs/compiler-api.md
index c09414f..abf8373 100644
--- a/docs/compiler-api.md
+++ b/docs/compiler-api.md
@@ -83,7 +83,19 @@ 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;
strip: StripFlags | null;
}