Просмотр исходного кода

Add failing test for nested higher-order sections

tags/0.7.2
Michael Jackson 13 лет назад
Родитель
Сommit
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>

Загрузка…
Отмена
Сохранить