Skip to content

Commit 13007fd

Browse files
committed
added test case for string as a context
1 parent 4adfb48 commit 13007fd

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

spec/_files/string_as_context.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
var string_as_context = {
2+
a_string: 'aa',
3+
a_list: ['a','b','c']
4+
};
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ul>
2+
{{#a_list}}
3+
<li><a href="#{{a_string}}/{{.}}">{{.}}</a></li>
4+
{{/a_list}}
5+
</ul>

spec/_files/string_as_context.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ul>
2+
<li><a href="#aa/a">a</a></li>
3+
<li><a href="#aa/b">b</a></li>
4+
<li><a href="#aa/c">c</a></li>
5+
</ul>

0 commit comments

Comments
 (0)