Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
jan
/
mustache.js
mirror da
https://github.com/janl/mustache.js
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Rilasci
46
Wiki
Attività
Sfoglia il codice sorgente
Merge
445e70e0cc
into
23beb3a880
pull/526/merge
kyl3r92
GitHub
9 anni fa
parent
23beb3a880
445e70e0cc
commit
8f76b1049d
3 ha cambiato i file
con
5 aggiunte
e
3 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
mustache.js
+0
-1
test/spec
+1
-0
wrappers/jquery/mustache.js.pre
+ 4
- 2
mustache.js
Vedi File
@@ -57,6 +57,7 @@
return !testRegExp(nonSpaceRe, string);
}
// Urlencoding / escaping map
var entityMap = {
'&': '&',
'<': '<',
@@ -67,13 +68,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
Vedi File
@@ -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($) {
Write
Preview
Loading…
Annulla
Salva