grunt-bake
Advanced tools
Comparing version 0.3.9 to 0.3.10
{ | ||
"name": "grunt-bake", | ||
"description": "Bake external includes into files to create static pages with no server-side compilation time", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"homepage": "https://github.com/MathiasPaumgarten/grunt-bake", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -57,3 +57,3 @@ /* | ||
var regex = /([ |\t]*)<!--\(\s?bake\s+([\w\/.\-]+)\s?([^>]*)\)-->/g; | ||
var regex = /(\n?)([ |\t]*)<!--\(\s?bake\s+([\w\/.\-]+)\s?([^>]*)\)-->/g; | ||
var regexInline = /(?:[ |\t]*<!--\(\s?bake-start\s+([^>]*)\)-->)\n?([\s\S]+?)(?:[ |\t]*<!--\(\s?bake-end\s?\)-->)/g; | ||
@@ -225,3 +225,3 @@ | ||
function replace( indent, includePath, attributes, filePath, values ) { | ||
function replace( linebreak, indent, includePath, attributes, filePath, values ) { | ||
@@ -263,7 +263,7 @@ includePath = preparePath( includePath, filePath ); | ||
return fragment; | ||
return linebreak + fragment; | ||
} else { | ||
return parse( includeContent, includePath, values ); | ||
return linebreak + parse( includeContent, includePath, values ); | ||
@@ -334,4 +334,4 @@ } | ||
fileContent = fileContent.replace( regex, function( match, indent, includePath, attributes ) { | ||
return replace( indent, includePath, attributes, filePath, values ); | ||
fileContent = fileContent.replace( regex, function( match, linebreak, indent, includePath, attributes ) { | ||
return replace( linebreak, indent, includePath, attributes, filePath, values ); | ||
} ); | ||
@@ -338,0 +338,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
31113