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
Test view with functions from cli
Tests
#717
for cli which allows use of functions in a view which is exported javascript.
pull/717/head
Justin Staubach
před 6 roky
rodič
51bd7fd494
revize
4221728e6f
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/cli_js_view_with_function.js
+1
-0
test/_files/cli_js_view_with_function.mustache
+1
-0
test/_files/cli_js_view_with_function.txt
+ 8
- 0
test/_files/cli_js_view_with_function.js
Zobrazit soubor
@@ -0,0 +1,8 @@
module.exports = {
'name': 'Tater',
'bold': function () {
return function (text, render) {
return '<b>' + render(text) + '</b>';
};
}
};
+ 1
- 0
test/_files/cli_js_view_with_function.mustache
Zobrazit soubor
@@ -0,0 +1 @@
{{#bold}}Hi {{name}}.{{/bold}}
+ 1
- 0
test/_files/cli_js_view_with_function.txt
Zobrazit soubor
@@ -0,0 +1 @@
<b>Hi Tater.</b>
Zapsat
Náhled
Načítá se…
Zrušit
Uložit