S JavaScriptem funguje tato webová stránka lépe.
Domů
Procházet
Nápověda
Přihlásit se
jan
/
mustache.js
zrcadlo
https://github.com/janl/mustache.js
Sledovat
1
Oblíbit
0
Rozštěpit
0
Zdrojový kód
Úkoly
0
Vydání
46
Wiki
Aktivita
Procházet zdrojové kódy
Add failing test for nested higher-order sections
tags/0.7.2
Michael Jackson
před 13 roky
rodič
eee8d695fc
revize
b9701d58f5
3 změnil soubory
, kde provedl
10 přidání
a
0 odebrání
Rozdělené zobrazení
Diff Options
Zobrazit statistiky
Download Patch File
Stáhněte rozdílový soubor
+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
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>
Zapsat
Náhled
Načítá se…
Zrušit
Uložit