This website works better with JavaScript.
首頁
探索
說明
登入
jan
/
mustache.js
镜像来自
https://github.com/janl/mustache.js
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
46
Wiki
Activity
瀏覽代碼
Add failing test for nested higher-order sections
tags/0.7.2
Michael Jackson
13 年之前
父節點
eee8d695fc
當前提交
b9701d58f5
共有
3 個文件被更改
,包括
10 次插入
和
0 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
test/_files/nested_higher_order_sections.js
+1
-0
test/_files/nested_higher_order_sections.mustache
+1
-0
test/_files/nested_higher_order_sections.txt
+ 8
- 0
test/_files/nested_higher_order_sections.js
查看文件
@@ -0,0 +1,8 @@
({
bold: function () {
return function (text, render) {
return '<b>' + render(text) + '</b>';
};
},
person: { name: 'Jonas' }
});
+ 1
- 0
test/_files/nested_higher_order_sections.mustache
查看文件
@@ -0,0 +1 @@
{{#bold}}{{#person}}My name is {{name}}!{{/person}}{{/bold}}
+ 1
- 0
test/_files/nested_higher_order_sections.txt
查看文件
@@ -0,0 +1 @@
<b>My name is Jonas!</b>
Write
Preview
Loading…
取消
儲存