You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varrenderFile=require('assemble-render-file');varassemble=require('assemble');// register as an instance plugin with assemblevarapp=assemble().use(renderFile());// then use in a vinyl pipelineapp.src('*.hbs').pipe(app.renderfile()).pipe(app.dest('foo'));
noop engine
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 nothingnext(null,view);});
Options
options.engineStrict
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.
About
Related projects
assemble-loader: Assemble plugin (^0.6.0) for loading globs of views onto custom view collections. Also works with… more | homepage
(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:
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: