Commit 226aae7
committed
feat(parser): Add conditional support inside each blocks
- Modify parseEachBody method in StatementParser to handle conditional tags
- Enable if/else, elseif, and not conditions within each loops
- Maintain nested conditional support inside iterations
- Preserve existing each block functionality
Example:
{{#each items}}
{{#if condition}}
content
{{/if}}
{{/each}}1 parent c0c686b commit 226aae7
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
0 commit comments