{"id":18434740,"url":"https://github.com/assemble/assemble-compile-file","last_synced_at":"2026-07-06T04:31:11.213Z","repository":{"id":66211885,"uuid":"55472690","full_name":"assemble/assemble-compile-file","owner":"assemble","description":"WIP. Assemble plugin for compiling views (in a vinyl pipeline) that might need to be rendered more than once.","archived":false,"fork":false,"pushed_at":"2016-04-05T06:16:36.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-14T10:53:30.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/assemble.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["jonschlinkert","doowb"]}},"created_at":"2016-04-05T06:16:25.000Z","updated_at":"2016-04-05T06:16:44.000Z","dependencies_parsed_at":"2023-02-22T00:30:21.989Z","dependency_job_id":null,"html_url":"https://github.com/assemble/assemble-compile-file","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/assemble/assemble-compile-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-compile-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-compile-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-compile-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-compile-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assemble","download_url":"https://codeload.github.com/assemble/assemble-compile-file/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-compile-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005419,"owners_count":26083883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T06:05:10.574Z","updated_at":"2025-10-10T21:40:39.652Z","avatar_url":"https://github.com/assemble.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jonschlinkert","https://github.com/sponsors/doowb"],"categories":[],"sub_categories":[],"readme":"# assemble-compile-file [![NPM version](https://img.shields.io/npm/v/assemble-compile-file.svg?style=flat)](https://www.npmjs.com/package/assemble-compile-file) [![NPM downloads](https://img.shields.io/npm/dm/assemble-compile-file.svg?style=flat)](https://npmjs.org/package/assemble-compile-file) [![Build Status](https://img.shields.io/travis/jonschlinkert/assemble-compile-file.svg?style=flat)](https://travis-ci.org/jonschlinkert/assemble-compile-file)\n\n\u003e Assemble plugin for compiling views (in a vinyl pipeline) that might need to be rendered more than once.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install assemble-compile-file --save\n```\n\n## Usage\n\n**WIP! This is not 100% ready for production use!**\n\nPlease feel free to play around with it if you want. Feedback or bug reports welcome.\n\n```js\nvar compileFile = require('assemble-compile-file');\nvar assemble = require('assemble');\n\n// register as an instance plugin with assemble\nvar app = assemble()\n  .use(compileFile());\n\n// then use in a vinyl pipeline\napp.src('*.hbs')\n  .pipe(app.compilefile())\n  .pipe(app.dest('foo'));\n```\n\n### noop engine\n\nBy 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](#optionsengineStrict).\n\nA noop engine follows the same signature as any engine, but must be registered using the key: `noop`.\n\n**Example**\n\n```js\napp.engine('noop', function(view, opts, next) {\n  // do whatever you want to `view`, or nothing\n  next(null, view);\n});\n```\n\n## Options\n\n### options.engineStrict\n\nBy default, when no engine is found for a file an error is thrown. This can be disabled with the following:\n\n```js\napp.option('engineStrict', false);\n```\n\nWhen disabled and an engine is not found, files are just passed through.\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [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)\n* [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)\n* [assemble-streams](https://www.npmjs.com/package/assemble-streams): Assemble pipeline plugin for pushing a view collection into a vinyl stream. | [homepage](https://github.com/assemble/assemble-streams)\n* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://www.npmjs.com/package/base) | [homepage](https://github.com/node-base/base)\n* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://www.npmjs.com/package/verb) | [homepage](https://github.com/verbose/verb)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/assemble-compile-file/issues/new).\n\n## Building docs\n\nGenerate readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install verb \u0026\u0026 npm run docs\n```\n\nOr, if [verb](https://github.com/verbose/verb) is installed globally:\n\n```sh\n$ verb\n```\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d \u0026\u0026 npm test\n```\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/assemble-compile-file/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v, on April 05, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemble%2Fassemble-compile-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassemble%2Fassemble-compile-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemble%2Fassemble-compile-file/lists"}