Skip to content
Browse files

Updating mustache to current version.

  • Loading branch information...
1 parent 4dcd483 commit 3055a6403307a71066e0135c0a37ec9e3ac0d8c5 @soitgoes soitgoes committed Sep 14, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −4 vendor/templating/mustache.js
View
7 vendor/templating/mustache.js
@@ -47,7 +47,7 @@ var Mustache = function() {
Sends parsed lines
*/
send: function(line) {
- if(line != "") {
+ if(line !== "") {
this.buffer.push(line);
}
},
@@ -66,7 +66,7 @@ var Mustache = function() {
this.ctag, "g");
return template.replace(regex, function(match, pragma, options) {
if(!that.pragmas_implemented[pragma]) {
- throw({message:
+ throw({message:
"This implementation of mustache doesn't understand the '" +
pragma + "' pragma"});
}
@@ -246,8 +246,7 @@ var Mustache = function() {
s = String(s === null ? "" : s);
return s.replace(/&(?!\w+;)|["'<>\\]/g, function(s) {
switch(s) {
- case "&": return "&amp;";
- case "\\": return "\\\\";
+ case "&": return "&amp;";
case '"': return '&quot;';
case "'": return '&#39;';
case "<": return "&lt;";

0 comments on commit 3055a64

Please sign in to comment.
Something went wrong with that request. Please try again.