Assemble plugin for rendering views in a vinyl pipeline.
npm install assemble-render-file> Assemble plugin for rendering views in a vinyl pipeline.
Install with npm:
``sh`
$ npm install --save assemble-render-file
`js
var renderFile = require('assemble-render-file');
var assemble = require('assemble');
// register as an instance plugin with assemble
var app = assemble()
.use(renderFile());
// then use in a vinyl pipeline
app.src('*.hbs')
.pipe(app.renderfile())
.pipe(app.dest('foo'));
`
By default, when no engine is found for a file an error is thrown. To get around this you can either define a noop engine, or use disable the engineStrict option.
A noop engine follows the same signature as any engine, but must be registered using the key: noop.
Example
`jsview
app.engine('noop', function(view, opts, next) {
// do whatever you want to , or nothing`
next(null, view);
});
By default, when no engine is found for a file an error is thrown. This can be disabled with the following:
`js`
app.option('engineStrict', false);
When disabled and an engine is not found, files are just passed through.
* assemble-loader: Assemble plugin (^0.6.0) for loading globs of views onto custom view collections. Also works with… more | homepage for loading globs of views onto custom view collections. Also works with verb or other Templates.js based applications.")
* assemble-streams: Assemble pipeline plugin for pushing views into a vinyl stream. | homepage
* assemble: Get the rocks out of your socks! Assemble makes you fast at creating web projects… more | homepage
* base: base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… more | set, get, del and use."" class="text-primary hover:underline" target="_blank" rel="noopener noreferrer">homepage
* verb: Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… more | homepage
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
| Commits | Contributor |
| --- | --- |
| 65 | jonschlinkert |
| 11 | doowb |
_(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)_
To generate the readme, run the following command:
`sh`
$ npm install -g verbose/verb#dev verb-generate-readme && verb
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
`sh``
$ npm install && npm test
Jon Schlinkert
* github/jonschlinkert
* twitter/jonschlinkert
Copyright © 2017, Jon Schlinkert.
MIT
*
_This file was generated by verb-generate-readme, v0.4.2, on February 20, 2017._