diff --git a/test/compiler/names-deconflicted-nested/_config.js b/test/compiler/names-deconflicted-nested/_config.js new file mode 100644 index 0000000000..f666a00448 --- /dev/null +++ b/test/compiler/names-deconflicted-nested/_config.js @@ -0,0 +1,15 @@ +export default { + data: { + array: [ [0,0,0], [0,0,0], [0,0,0] ] + }, + + html: ` +
+ [ 0, 0 ][ 0, 1 ][ 0, 2 ] +
+ [ 1, 0 ][ 1, 1 ][ 1, 2 ] +
+ [ 2, 0 ][ 2, 1 ][ 2, 2 ] +
+ ` +}; diff --git a/test/compiler/names-deconflicted-nested/main.html b/test/compiler/names-deconflicted-nested/main.html new file mode 100644 index 0000000000..027ce3276b --- /dev/null +++ b/test/compiler/names-deconflicted-nested/main.html @@ -0,0 +1,7 @@ +{{#each array as row, j}} +
+ {{#each row as cell, k}} + [ {{j}}, {{k}} ] + {{/each}} +
+{{/each}}