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
added comments
pull/526/head
Kai Fontein
10 anos atrás
pai
a518c6d140
commit
445e70e0cc
3 arquivos alterados
com
5 adições
e
3 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+4
-2
mustache.js
+0
-1
test/spec
+1
-0
wrappers/jquery/mustache.js.pre
+ 4
- 2
mustache.js
Ver arquivo
@@ -57,6 +57,7 @@
return !testRegExp(nonSpaceRe, string);
}
// Urlencoding / escaping map
var entityMap = {
'&': '&',
'<': '<',
@@ -65,13 +66,14 @@
"'": ''',
'/': '/'
};
// Escapes urls
function escapeHtml (string) {
return String(string).replace(/[&<>"'\/]/g, function fromEntityMap (s) {
return entityMap[s];
});
}
var whiteRe = /\s*/;
var spaceRe = /\s+/;
var equalsRe = /\s*=/;
+ 0
- 1
test/spec
@@ -1 +0,0 @@
Subproject commit 72233f3ffda9e33915fd3022d0a9ebbcce265acd
+ 1
- 0
wrappers/jquery/mustache.js.pre
Ver arquivo
@@ -5,5 +5,6 @@ Shameless port of a shameless port
See http://github.com/defunkt/mustache for more info.
*/
// This seems useless and not valid js syntax @TODO
;(function($) {
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar