grunt-bake
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -202,4 +202,4 @@ /* | ||
transforms: { | ||
visibleBool: function(state) { | ||
return state ? 'is true' : 'is false'; | ||
visibleBool: function( state ) { | ||
return state ? "is true" : "is false"; | ||
} | ||
@@ -289,4 +289,4 @@ } | ||
transforms: { | ||
noop: function(str) { | ||
return str | ||
noop: function( string ) { | ||
return string; | ||
} | ||
@@ -307,4 +307,4 @@ } | ||
transforms: { | ||
upper: function(str) { | ||
return String(str).toUpperCase(); | ||
upper: function( string ) { | ||
return String( string ).toUpperCase(); | ||
} | ||
@@ -325,7 +325,7 @@ } | ||
transforms: { | ||
nl2br: function(str) { | ||
return String(str).replace(/([\r\n]+)/g, '<br />'); | ||
nl2br: function( string ) { | ||
return String( string ).replace( /([\r\n]+)/g, "<br />" ); | ||
}, | ||
upper: function(str) { | ||
return String(str).toUpperCase(); | ||
upper: function( string ) { | ||
return String( string ).toUpperCase(); | ||
} | ||
@@ -350,4 +350,4 @@ } | ||
transforms: { | ||
upper: function(str) { | ||
return String(str).toUpperCase(); | ||
upper: function( string ) { | ||
return String( string ).toUpperCase(); | ||
} | ||
@@ -354,0 +354,0 @@ } |
{ | ||
"name": "grunt-bake", | ||
"description": "Bake external includes into files to create static pages with no server-side compilation time", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "https://github.com/MathiasPaumgarten/grunt-bake", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -411,3 +411,3 @@ /* | ||
if ( forEachValues.length > 0 ) { | ||
if( forEachName && forEachValues.length > 0 ) { | ||
@@ -436,6 +436,9 @@ var fragment = ""; | ||
} else { | ||
} else if( !forEachName ) { | ||
return linebreak + parse( includeContent, includePath, values ); | ||
} else { | ||
return ""; | ||
} | ||
@@ -442,0 +445,0 @@ } |
@@ -13,3 +13,4 @@ { | ||
"superman" | ||
] | ||
], | ||
"empty": [] | ||
}, | ||
@@ -16,0 +17,0 @@ |
Sorry, the diff of this file is not supported yet
48637
802