
Product
Introducing Supply Chain Attack Campaigns Tracking in the Socket Dashboard
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.
assemble-compile-file
Advanced tools
Assemble plugin for compiling views (in a vinyl pipeline) that might need to be rendered more than once.
Assemble plugin for compiling views (in a vinyl pipeline) that might need to be rendered more than once.
Install with npm:
$ npm install assemble-compile-file --save
WIP! This is not 100% ready for production use!
Please feel free to play around with it if you want. Feedback or bug reports welcome.
var compileFile = require('assemble-compile-file');
var assemble = require('assemble');
// register as an instance plugin with assemble
var app = assemble()
.use(compileFile());
// then use in a vinyl pipeline
app.src('*.hbs')
.pipe(app.compilefile())
.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
app.engine('noop', function(view, opts, next) {
// do whatever you want to `view`, 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:
app.option('engineStrict', false);
When disabled and an engine is not found, files are just passed through.
You might also be interested in these projects:
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
$ npm install verb && npm run docs
Or, if verb is installed globally:
$ verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb, v, on April 05, 2016.
FAQs
Assemble plugin for compiling views (in a vinyl pipeline) that might need to be rendered more than once.
We found that assemble-compile-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.

Research
Malicious PyPI package sympy-dev targets SymPy users, a Python symbolic math library with 85 million monthly downloads.

Security News
Node.js 25.4.0 makes require(esm) stable, formalizing CommonJS and ESM compatibility across supported Node versions.