derby-jade
Advanced tools
Comparing version 0.6.8 to 0.6.9
@@ -5,2 +5,3 @@ var coffeeScript = require("coffee-script"); | ||
if (!js) return ''; | ||
if (js === 'delete()') return js; | ||
var original = js; | ||
@@ -7,0 +8,0 @@ // Exclude Derby block alias |
@@ -95,3 +95,3 @@ var jade = require('jade'); | ||
// Add colons | ||
.replace(/^\s*(<([\w-]+))((?:\b[^>]+)?>)\n?([\s\S]*?)\n?<\/\2>$/, function (template, left, name, right, content) { | ||
.replace(/^\s*(<([\w-:]+))((?:\b[^>]+)?>)\n?([\s\S]*?)\n?<\/\2>$/, function (template, left, name, right, content) { | ||
return left + ':' + right + (content ? '\n' + content : ''); | ||
@@ -187,5 +187,6 @@ }) | ||
// it makes colons optional | ||
statement = statement.replace(/^([^(]*):/, function(statement, tag) { | ||
return tag; | ||
statement = statement.replace(/:([\n\s(])/, function(statement, symbol) { | ||
return symbol; | ||
}); | ||
statement = statement.replace(/:$/, ''); | ||
// We add underscore to avoid problems when Derby tag name | ||
@@ -192,0 +193,0 @@ // is same as non closing tags |
{ | ||
"name": "derby-jade", | ||
"description": "Jade for Derby.js", | ||
"version": "0.6.8", | ||
"version": "0.6.9", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Vladimir Makhaev", |
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
15510
251