Comparing version 0.8.5 to 0.8.6
0.8.6 / 2011-03-11 | ||
================== | ||
* Fixed parenthesized expressions in attrs. Closes #170 | ||
* Changed; default interpolation values `== null` to ''. Closes #167 | ||
0.8.5 / 2011-03-09 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -44,3 +44,3 @@ | ||
compile: function(){ | ||
this.buf = []; | ||
this.buf = ['var interp;']; | ||
this.visit(this.node); | ||
@@ -47,0 +47,0 @@ return this.buf.join('\n'); |
@@ -20,3 +20,3 @@ | ||
exports.version = '0.8.5'; | ||
exports.version = '0.8.6'; | ||
@@ -23,0 +23,0 @@ /** |
@@ -308,2 +308,3 @@ | ||
switch (state()) { | ||
case 'expr': | ||
case 'array': | ||
@@ -329,2 +330,3 @@ case 'string': | ||
case 'val': | ||
case 'expr': | ||
case 'array': | ||
@@ -339,2 +341,10 @@ case 'string': | ||
break; | ||
case '(': | ||
states.push('expr'); | ||
val += c; | ||
break; | ||
case ')': | ||
states.pop(); | ||
val += c; | ||
break; | ||
case '{': | ||
@@ -341,0 +351,0 @@ states.push('object'); |
@@ -22,4 +22,4 @@ | ||
+ ('!' == flag ? '' : 'escape') | ||
+ "(" + code.replace(/\\'/g, "'") | ||
+ ") + '"; | ||
+ "((interp = " + code.replace(/\\'/g, "'") | ||
+ ") == null ? '' : interp) + '"; | ||
}); | ||
@@ -26,0 +26,0 @@ }; |
{ | ||
"name": "jade", | ||
"description": "Jade template engine", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "main": "./index.js", |
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
68144
1797