Procházet zdrojové kódy

Add failing test for nested higher-order sections

tags/0.7.2
Michael Jackson před 13 roky
rodič
revize
b9701d58f5
3 změnil soubory, kde provedl 10 přidání a 0 odebrání
  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 Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -0,0 +1 @@
{{#bold}}{{#person}}My name is {{name}}!{{/person}}{{/bold}}

+ 1
- 0
test/_files/nested_higher_order_sections.txt Zobrazit soubor

@@ -0,0 +1 @@
<b>My name is Jonas!</b>

Načítá se…
Zrušit
Uložit