Procházet zdrojové kódy

Less code per line, fix Rhino compat.

tags/0.3.0
Jan Lehnardt před 16 roky
rodič
revize
2bab7be637
3 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. +1
    -0
      CHANGES.md
  2. +1
    -0
      THANKS.md
  3. +2
    -1
      mustache.js

+ 1
- 0
CHANGES.md Zobrazit soubor

@@ -2,6 +2,7 @@

## 0.3.0 (??-??-????)

* Fix Rhino compat.
* CommonJS packaging is no longer a special case.
* DRY Rakefile.
* Allow whitespace around tag names.


+ 1
- 0
THANKS.md Zobrazit soubor

@@ -17,3 +17,4 @@ Mustache.js wouldn't kick ass if it weren't for these fine souls:
* dpree
* Jason Smith / jhs
* Aaron Gibralter / agibralter
* Ross Boucher / boucher

+ 2
- 1
mustache.js Zobrazit soubor

@@ -240,7 +240,8 @@ var Mustache = function() {
Does away with nasty characters
*/
escape: function(s) {
return ((s == null) ? "" : s).toString().replace(/&(?!\w+;)|["<>\\]/g, function(s) {
s = String(s == null ? "" : s);
return s.replace(/&(?!\w+;)|["<>\\]/g, function(s) {
switch(s) {
case "&": return "&amp;";
case "\\": return "\\\\";;


Načítá se…
Zrušit
Uložit