Comparing version 0.27.0 to 0.27.1
@@ -23,3 +23,3 @@ /*! | ||
exports.version = '0.27.0'; | ||
exports.version = '0.27.1'; | ||
@@ -26,0 +26,0 @@ /** |
@@ -8,2 +8,4 @@ | ||
var utils = require('./utils'); | ||
/** | ||
@@ -506,8 +508,2 @@ * Initialize `Lexer` with the given `str`. | ||
function interpolate(attr) { | ||
return attr.replace(/#\{([^}]+)\}/g, function(_, expr){ | ||
return quote + " + (" + expr + ") + " + quote; | ||
}); | ||
} | ||
this.consume(index + 1); | ||
@@ -540,3 +536,3 @@ tok.attrs = {}; | ||
? true | ||
: interpolate(val); | ||
: utils.interpolate(val); | ||
key = val = ''; | ||
@@ -543,0 +539,0 @@ } |
@@ -19,3 +19,3 @@ | ||
return escape | ||
? str | ||
? flag + "{" + code + "}" | ||
: "' + " | ||
@@ -22,0 +22,0 @@ + ('!' == flag ? '' : 'escape') |
{ | ||
"name": "jade", | ||
"description": "Jade template engine", | ||
"version": "0.27.0", | ||
"version": "0.27.1", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/visionmedia/jade", |
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
211289
6155