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

assemble-render-file

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assemble-render-file - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

19

index.js

@@ -11,3 +11,2 @@ /*!

var utils = require('./utils');
var debug = utils.debug;

@@ -23,3 +22,3 @@ /**

* @name .renderFile
* @param {Object} `locals` Optionally locals to pass to the template engine for rendering.
* @param {Object} `locals` Optional locals to pass to the template engine for rendering.
* @return {Object}

@@ -30,4 +29,6 @@ * @api public

module.exports = function(config) {
return function(app) {
return function plugin(app) {
if (!isValidInstance(this)) return;
var opts = utils.merge({}, this.options, config);
var debug = utils.debug;

@@ -93,2 +94,4 @@ this.define('renderFile', function(engine, locals) {

});
return plugin;
};

@@ -106,1 +109,11 @@ };

}
function isValidInstance(app) {
if (app.isView || app.isItem) {
return false;
}
if (app.isRegistered('assemble-render-file')) {
return false;
}
return true;
}

4

package.json
{
"name": "assemble-render-file",
"description": "Assemble plugin for rendering views in a vinyl pipeline.",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/assemble/assemble-render-file",

@@ -41,3 +41,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"should": "^8.3.0",
"templates": "^0.16.0"
"templates": "^0.16.1"
},

@@ -44,0 +44,0 @@ "keywords": [

@@ -1,2 +0,2 @@

# assemble-render-file [![NPM version](https://img.shields.io/npm/v/assemble-render-file.svg)](https://www.npmjs.com/package/assemble-render-file) [![Build Status](https://img.shields.io/travis/assemble/assemble-render-file.svg)](https://travis-ci.org/assemble/assemble-render-file)
# assemble-render-file [![NPM version](https://img.shields.io/npm/v/assemble-render-file.svg?style=flat)](https://www.npmjs.com/package/assemble-render-file) [![NPM downloads](https://img.shields.io/npm/dm/assemble-render-file.svg?style=flat)](https://npmjs.org/package/assemble-render-file) [![Build Status](https://img.shields.io/travis/assemble/assemble-render-file.svg?style=flat)](https://travis-ci.org/assemble/assemble-render-file)

@@ -58,2 +58,4 @@ > Assemble plugin for rendering views in a vinyl pipeline.

You might also be interested in these projects:
* [assemble](https://www.npmjs.com/package/assemble): Assemble is a powerful, extendable and easy to use static site generator for node.js. Used… [more](https://www.npmjs.com/package/assemble) | [homepage](https://github.com/assemble/assemble)

@@ -100,3 +102,3 @@ * [assemble-loader](https://www.npmjs.com/package/assemble-loader): Assemble plugin (^0.6.0) for loading globs of views onto custom view collections. Also works with… [more](https://www.npmjs.com/package/assemble-loader) | [homepage](https://github.com/jonschlinkert/assemble-loader)

Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT license](https://github.com/assemble/assemble-render-file/blob/master/LICENSE).

@@ -106,2 +108,2 @@

_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on March 28, 2016._
_This file was generated by [verb](https://github.com/verbose/verb), v, on April 05, 2016._
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