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 test case for recursive partial. If it weren't for complex.html
it could be neat and there'd be s/kids/children/ — Oh well.
tags/0.3.0
Jan Lehnardt
16 lat temu
rodzic
1e7fce2e7a
commit
1f0ca2fe50
3 zmienionych plików
z
4 dodań
i
4 usunięć
Widok podzielony
Opcje porównania
Pokaż statystyki
Ściągnij plik aktualizacji
Ściągnij plik porównania
+2
-2
examples/partial_recursion.html
+1
-1
examples/partial_recursion.js
+1
-1
examples/partial_recursion.txt
+ 2
- 2
examples/partial_recursion.html
Wyświetl plik
@@ -1,4 +1,4 @@
{{name}}
{{#
children
}}
{{#
kids
}}
{{>partial}}
{{/
children
}}
{{/
kids
}}
+ 1
- 1
examples/partial_recursion.js
Wyświetl plik
@@ -1,6 +1,6 @@
var partial_context = {
name: '1',
children
: [
kids
: [
{
name: '1.1',
children: [
+ 1
- 1
examples/partial_recursion.txt
Wyświetl plik
@@ -1,3 +1,3 @@
1
1.1
1.1.1
1.1.1
Napisz
Podgląd
Ładowanie…
Anuluj
Zapisz