This website works better with JavaScript.
首頁
探索
說明
登入
jan
/
mustache.js
镜像来自
https://github.com/janl/mustache.js
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
46
Wiki
Activity
瀏覽代碼
added test case for string as a context
tags/0.5.1
utvara
14 年之前
父節點
4adfb48205
當前提交
13007fd9d6
共有
3 個文件被更改
,包括
14 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
spec/_files/string_as_context.js
+5
-0
spec/_files/string_as_context.mustache
+5
-0
spec/_files/string_as_context.txt
+ 4
- 0
spec/_files/string_as_context.js
查看文件
@@ -0,0 +1,4 @@
var string_as_context = {
a_string: 'aa',
a_list: ['a','b','c']
};
+ 5
- 0
spec/_files/string_as_context.mustache
查看文件
@@ -0,0 +1,5 @@
<ul>
{{#a_list}}
<li><a href="#{{a_string}}/{{.}}">{{.}}</a></li>
{{/a_list}}
</ul>
+ 5
- 0
spec/_files/string_as_context.txt
查看文件
@@ -0,0 +1,5 @@
<ul>
<li><a href="#aa/a">a</a></li>
<li><a href="#aa/b">b</a></li>
<li><a href="#aa/c">c</a></li>
</ul>
Write
Preview
Loading…
取消
儲存