Skip to content

Commit

Permalink
additional test for #88, from #126
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 6, 2016
1 parent 659eb32 commit ddfc3e9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/compiler/names-deconflicted-nested/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
export default {
data: {
array: [ [0,0,0], [0,0,0], [0,0,0] ]
},

html: `
<div>
<span>[ 0, 0 ]</span><span>[ 0, 1 ]</span><span>[ 0, 2 ]</span>
</div><div>
<span>[ 1, 0 ]</span><span>[ 1, 1 ]</span><span>[ 1, 2 ]</span>
</div><div>
<span>[ 2, 0 ]</span><span>[ 2, 1 ]</span><span>[ 2, 2 ]</span>
</div>
`
};
7 changes: 7 additions & 0 deletions test/compiler/names-deconflicted-nested/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{{#each array as row, j}}
<div>
{{#each row as cell, k}}
<span>[ {{j}}, {{k}} ]</span>
{{/each}}
</div>
{{/each}}

0 comments on commit ddfc3e9

Please sign in to comment.