Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-layouts

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-layouts - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

test/fixtures/partials/build/index.html

5

History.md

@@ -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 @@ ---------------------

3

lib/index.js

@@ -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();

3

package.json

@@ -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();
});
});
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc