metalsmith-layouts
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -0,1 +1,6 @@ | ||
1.2.1 - July 25, 2015 | ||
--------------------- | ||
* add error handling | ||
* add test for partials | ||
1.2.0 - July 25, 2015 | ||
@@ -2,0 +7,0 @@ --------------------- |
@@ -43,2 +43,5 @@ var consolidate = require('consolidate'); | ||
// Throw an error for unsupported engines or typos | ||
if (!consolidate[engine]) throw new Error('Unknown template engine: "' + engine + '"'); | ||
return function(files, metalsmith, done){ | ||
@@ -45,0 +48,0 @@ var metadata = metalsmith.metadata(); |
@@ -6,3 +6,3 @@ { | ||
"repository": "git://github.com/superwolff/metalsmith-layouts.git", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"license": "MIT", | ||
@@ -25,2 +25,3 @@ "main": "lib/index.js", | ||
"eslint": "^0.24.1", | ||
"handlebars": "^3.0.3", | ||
"metalsmith": "^2.0.1", | ||
@@ -27,0 +28,0 @@ "mocha": "^2.2.5", |
@@ -77,2 +77,19 @@ var assert = require('assert'); | ||
}); | ||
it('should be capable of processing partials multiple times', function(done){ | ||
var instance = Metalsmith('test/fixtures/partials') | ||
.use(layouts({ | ||
engine: 'handlebars', | ||
partials: { nav: 'partials/nav'} | ||
})); | ||
instance.build(function(err){ | ||
if (err) return done(err); | ||
instance.build(function(err){ | ||
if (err) return done(err); | ||
equal('test/fixtures/partials/expected', 'test/fixtures/partials/build'); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
}); |
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
244046
50
156
6