Strona działa najlepiej z włączonym JavaScript.
Strona główna
Odkrywaj
Pomoc
Zaloguj się
jan
/
mustache.js
kopia lustrzana
https://github.com/janl/mustache.js
Obserwuj
1
Polub
0
Forkuj
0
Kod
Zgłoszenia
0
Wydania
46
Wiki
Aktywność
Przeglądaj źródła
Add failing test for nested higher-order sections
tags/0.7.2
Michael Jackson
13 lat temu
rodzic
eee8d695fc
commit
b9701d58f5
3 zmienionych plików
z
10 dodań
i
0 usunięć
Zunifikowany widok
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+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
Wyświetl plik
@@ -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
Wyświetl plik
@@ -0,0 +1 @@
{{#bold}}{{#person}}My name is {{name}}!{{/person}}{{/bold}}
+ 1
- 0
test/_files/nested_higher_order_sections.txt
Wyświetl plik
@@ -0,0 +1 @@
<b>My name is Jonas!</b>
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz