Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
jan
/
mustache.js
réplica de
https://github.com/janl/mustache.js
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Lanzamientos
46
Wiki
Actividad
Explorar el Código
Add failing test for nested higher-order sections
tags/0.7.2
Michael Jackson
hace 13 años
padre
eee8d695fc
commit
b9701d58f5
Se han
modificado 3 ficheros
con
10 adiciones
y
0 borrados
Dividir vista
Opciones de diferencias
Mostrar estadísticas
Descargar archivo de parche
Descargar archivo de diferencias
+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
Ver fichero
@@ -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
Ver fichero
@@ -0,0 +1 @@
{{#bold}}{{#person}}My name is {{name}}!{{/person}}{{/bold}}
+ 1
- 0
test/_files/nested_higher_order_sections.txt
Ver fichero
@@ -0,0 +1 @@
<b>My name is Jonas!</b>
Escribir
Vista previa
Cargando…
Cancelar
Guardar