grunt-bake
Advanced tools
Comparing version 1.6.0 to 1.6.1
@@ -85,2 +85,14 @@ /* | ||
advanced_bake_multi: { | ||
options: { | ||
content: "test/fixtures/content.json", | ||
section: "en" | ||
}, | ||
files: { | ||
"tmp/advanced_bake_multi_one.html": "test/fixtures/advanced_bake_multi_one.html", | ||
"tmp/advanced_bake_multi_two.html": "test/fixtures/advanced_bake_multi_two.html" | ||
} | ||
}, | ||
object_bake: { | ||
@@ -87,0 +99,0 @@ options: { |
{ | ||
"name": "grunt-bake", | ||
"description": "Bake external includes into files to create static pages with no server-side compilation time", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"homepage": "https://github.com/MathiasPaumgarten/grunt-bake", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -673,2 +673,3 @@ # grunt-bake | ||
* `1.6.1` __2-11-2016__ fixes error for options.section on multiple files. | ||
* `1.6.0` __2-10-2016__ adds support for parameters in transforms. Also introduces a breaking change away from transformGutter. | ||
@@ -675,0 +676,0 @@ * `1.5.1` __2-9-2016__ adds @referrer attribute to _bake. |
@@ -56,2 +56,11 @@ /* | ||
if ( options.section ) { | ||
if ( ! options.content[ options.section ] ) { | ||
grunt.log.error( "content doesn't have section " + options.section ); | ||
} | ||
options.content = options.content[ options.section ]; | ||
} | ||
// ======================= | ||
@@ -596,11 +605,2 @@ // -- DEFAULT PROCESSOR -- | ||
if ( options.section ) { | ||
if ( ! options.content[ options.section ] ) { | ||
grunt.log.error( "content doesn't have section " + options.section ); | ||
} | ||
options.content = options.content[ options.section ]; | ||
} | ||
bakeFile( src, dest, options.content ); | ||
@@ -607,0 +607,0 @@ } ); |
@@ -13,2 +13,4 @@ "use strict"; | ||
"tmp/advanced_bake.html": "test/expected/advanced_bake.html", | ||
"tmp/advanced_bake_multi_one.html": "test/expected/advanced_bake_multi_one.html", | ||
"tmp/advanced_bake_multi_two.html": "test/expected/advanced_bake_multi_two.html", | ||
"tmp/costum_process_bake.html": "test/expected/costum_process_bake.html", | ||
@@ -15,0 +17,0 @@ "tmp/recursive_bake.html": "test/expected/recursive_bake.html", |
61991
95
978
681