summaryrefslogtreecommitdiffstats
path: root/src/handlebars.yy
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlebars.yy')
-rw-r--r--src/handlebars.yy7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/handlebars.yy b/src/handlebars.yy
index a05b477..ee0eddb 100644
--- a/src/handlebars.yy
+++ b/src/handlebars.yy
@@ -17,6 +17,7 @@ statement
| block -> $1
| rawBlock -> $1
| partial -> $1
+ | partialBlock -> $1
| content -> $1
| COMMENT {
$$ = {
@@ -101,6 +102,12 @@ partial
};
}
;
+partialBlock
+ : openPartialBlock program closeBlock -> yy.preparePartialBlock($1, $2, $3, @$)
+ ;
+openPartialBlock
+ : OPEN_PARTIAL_BLOCK partialName param* hash? CLOSE -> { name: $2, params: $3, hash: $4, strip: yy.stripFlags($1, $5) }
+ ;
param
: helperName -> $1