This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
jan
/
mustache.js
огледало од
https://github.com/janl/mustache.js
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Издања
46
Вики
Activity
Преглед изворни кода
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
пре 6 година
родитељ
51bd7fd494
комит
4221728e6f
3 измењених фајлова
са
10 додато
и
0 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Прегледај датотеку
@@ -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
Прегледај датотеку
@@ -0,0 +1 @@
{{#bold}}Hi {{name}}.{{/bold}}
+ 1
- 0
test/_files/cli_js_view_with_function.txt
Прегледај датотеку
@@ -0,0 +1 @@
<b>Hi Tater.</b>
Write
Preview
Loading…
Откажи
Сачувај