Skip to content

Commit

Permalink
Add a spec for nested block reindentation (mustache#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Jan 26, 2024
1 parent 1cf36d6 commit 700139f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions specs/~inheritance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,23 @@ tests:
Hi,
one
two
- name: Nested block reindentation
desc: Nested blocks are reindented relative to the surrounding block
data: {}
template: |
{{<parent}}{{$nested}}
three
{{/nested}}{{/parent}}
partials:
parent: |
{{<grandparent}}{{$block}}
one
{{$nested}}
two
{{/nested}}
{{/block}}{{/grandparent}}
grandparent: "{{$block}}default{{/block}}"
expected: |
one
three

0 comments on commit 700139f

Please sign in to comment.