ソースを参照

Add failing test for nested higher-order sections

tags/0.7.2
Michael Jackson 13年前
コミット
b9701d58f5
3個のファイルの変更10行の追加0行の削除
  1. +8
    -0
      test/_files/nested_higher_order_sections.js
  2. +1
    -0
      test/_files/nested_higher_order_sections.mustache
  3. +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>

読み込み中…
キャンセル
保存