Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
jan
/
mustache.js
espelhamento de
https://github.com/janl/mustache.js
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Versões
46
Wiki
Atividade
Ver código fonte
allow tag-free templates. Closes
http://github.com/janl/mustache.js/issues#issue/9
tags/0.2.2
Jan Lehnardt
16 anos atrás
pai
2ff0ce7767
commit
88ddf16cec
4 arquivos alterados
com
8 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+1
-0
examples/empty_template.html
+1
-0
examples/empty_template.js
+1
-0
examples/empty_template.txt
+5
-1
mustache.js
+ 1
- 0
examples/empty_template.html
Ver arquivo
@@ -0,0 +1 @@
<html><head></head><body><h1>Test</h1></body></html>
+ 1
- 0
examples/empty_template.js
Ver arquivo
@@ -0,0 +1 @@
var empty_template = {};
+ 1
- 0
examples/empty_template.txt
Ver arquivo
@@ -0,0 +1 @@
<html><head></head><body><h1>Test</h1></body></html>
+ 5
- 1
mustache.js
Ver arquivo
@@ -21,7 +21,11 @@ var Mustache = function() {
render: function(template, context, partials, in_recursion) {
// fail fast
if(template.indexOf(this.otag) == -1) {
return template;
if(in_recursion) {
return template;
} else {
this.send(template);
}
}
if(!in_recursion) {
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar