{"id":18434718,"url":"https://github.com/assemble/assemble-select-views","last_synced_at":"2025-04-14T08:24:00.217Z","repository":{"id":57184973,"uuid":"58375893","full_name":"assemble/assemble-select-views","owner":"assemble","description":"Assemble plugin that adds a `.selectViews` method to the instance, for prompting the user to select the views they want to write to the file system.","archived":false,"fork":false,"pushed_at":"2016-05-09T17:03:17.000Z","size":29,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-16T10:15:04.949Z","etag":null,"topics":["assemble-plugin","file","prompt","view"],"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}},"created_at":"2016-05-09T12:46:45.000Z","updated_at":"2017-05-03T22:23:25.000Z","dependencies_parsed_at":"2022-08-23T01:31:12.412Z","dependency_job_id":null,"html_url":"https://github.com/assemble/assemble-select-views","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-select-views","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-select-views/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-select-views/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/assemble%2Fassemble-select-views/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/assemble","download_url":"https://codeload.github.com/assemble/assemble-select-views/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248844298,"owners_count":21170547,"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","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":["assemble-plugin","file","prompt","view"],"created_at":"2024-11-06T06:05:04.759Z","updated_at":"2025-04-14T08:24:00.093Z","avatar_url":"https://github.com/assemble.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# assemble-select-views [![NPM version](https://img.shields.io/npm/v/assemble-select-views.svg?style=flat)](https://www.npmjs.com/package/assemble-select-views) [![NPM downloads](https://img.shields.io/npm/dm/assemble-select-views.svg?style=flat)](https://npmjs.org/package/assemble-select-views) [![Build Status](https://img.shields.io/travis/assemble/assemble-select-views.svg?style=flat)](https://travis-ci.org/assemble/assemble-select-views)\n\nAssemble plugin that adds a `.selectViews` method to the instance, for prompting the user to select the views they want to write to the file system.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install assemble-select-views --save\n```\n\n**Example**\n\n![assemble-select-views](https://cloud.githubusercontent.com/assets/383994/15114173/af5319de-15c6-11e6-8b66-1ff7bcee8ec7.gif)\n\n## Usage\n\n```js\nvar select = require('assemble-select-views');\nvar assemble = require('assemble');\nvar app = assemble();\n\n// register the plugin\napp.use(select());\n```\n\n**Example usage**\n\nSee [assemblefile.js](assemblefile.js) for a working example.\n\n```js\n// create a collection\napp.create('pages');\n\n// add \"pages\" to the collection\napp.page('a.hbs', {content: 'this is {{name}}', data: {name: 'Foo'}});\napp.page('b.hbs', {content: 'this is {{name}}', data: {name: 'Bar'}});\napp.page('c.hbs', {content: 'this is {{name}}', data: {name: 'Baz'}});\n\n// register an engine for rendering \".hbs\" files\napp.engine('hbs', require('engine-handlebars'));\n\n// ask the user which \"pages\" they want to render\n// and write to the file system\napp.selectViews('pages', function(err, views) {\n  if (err) {\n    console.log(err);\n    return;\n  }\n  console.log('done!');\n});\n```\n\n## Related projects\n\nYou might also be interested in these projects:\n\n* [assemble-fs](https://www.npmjs.com/package/assemble-fs): Assemble plugin to add methods to assemble for working with the file system, like src,… [more](https://www.npmjs.com/package/assemble-fs) | [homepage](https://github.com/assemble/assemble-fs)\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* [base-questions](https://www.npmjs.com/package/base-questions): Plugin for base-methods that adds methods for prompting the user and storing the answers on… [more](https://www.npmjs.com/package/base-questions) | [homepage](https://github.com/node-base/base-questions)\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\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/assemble/assemble-select-views/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/assemble/assemble-select-views/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on May 09, 2016._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemble%2Fassemble-select-views","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fassemble%2Fassemble-select-views","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fassemble%2Fassemble-select-views/lists"}