haml-coffee
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -0,1 +1,5 @@ | ||
# Version 0.3.1 | ||
* Fix custom clean value function when escaping function is also custom provided. | ||
# Version 0.3.0 | ||
@@ -2,0 +6,0 @@ |
@@ -215,9 +215,9 @@ (function() { | ||
output += escapeFn + '||= (text, escape) ->\n "#{ text }"\n .replace(/&/g, \'&\')\n .replace(/</g, \'<\')\n .replace(/>/g, \'>\')\n .replace(/\'/g, \''\')\n .replace(/\"/g, \'"\')\n'; | ||
if (this.options.customCleanValue) { | ||
cleanFn = this.options.customCleanValue; | ||
} else { | ||
cleanFn = "" + namespace + ".cleanValue"; | ||
output += cleanFn + '||= (text) -> if text is null or text is undefined then \'\' else text\n'; | ||
} | ||
} | ||
if (this.options.customCleanValue) { | ||
cleanFn = this.options.customCleanValue; | ||
} else { | ||
cleanFn = "" + namespace + ".cleanValue"; | ||
output += cleanFn + '||= (text) -> if text is null or text is undefined then \'\' else text\n'; | ||
} | ||
output += "" + namespace + "['" + templateName + "'] = (context) ->\n"; | ||
@@ -224,0 +224,0 @@ output += " fn = (context) ->\n"; |
@@ -17,3 +17,3 @@ { | ||
], | ||
"version" : "0.3.0", | ||
"version" : "0.3.1", | ||
"licenses" : [ | ||
@@ -20,0 +20,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179621