{"_id":"base-engines","_rev":"231855","name":"base-engines","description":"Adds support for managing template engines to your base application.","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T15:46:43.000Z","created":"2016-06-01T05:46:48.486Z","0.2.1":"2017-02-21T23:08:44.302Z","0.2.0":"2016-06-27T20:57:33.954Z","0.1.1":"2016-06-07T07:27:10.102Z","0.1.0":"2016-06-01T05:46:48.486Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-engines.git"},"versions":{"0.2.1":{"name":"base-engines","description":"Adds support for managing template engines to your base application.","version":"0.2.1","homepage":"https://github.com/node-base/base-engines","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"contributors":[{"name":"Brian Woodward","email":"brian.woodward@gmail.com","url":"https://github.com/doowb"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/node-base/base-engines.git"},"bugs":{"url":"https://github.com/node-base/base-engines/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^2.2.0","define-property":"^0.2.5","engine-cache":"^0.19.0","is-valid-app":"^0.1.2","lazy-cache":"^2.0.1"},"devDependencies":{"base":"^0.11.1","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":["api","app","application","base","base-plugin","baseplugin","building-blocks","create","engines","framework","plugin","plugins","tool","toolkit","tools"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-option","base-task"]},"reflinks":["base","verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"d64993cf478e5b6da5d808508a843f8439e0664c","_id":"base-engines@0.2.1","_shasum":"697800ca8ab888a33789738dbfaccb818a2a5a7b","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"697800ca8ab888a33789738dbfaccb818a2a5a7b","size":4132,"noattachment":false,"key":"/base-engines/-/base-engines-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-engines/download/base-engines-0.2.1.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/base-engines-0.2.1.tgz_1487718523731_0.871740733506158"},"directories":{},"publish_time":1487718524302,"_cnpm_publish_time":1487718524302,"_hasShrinkwrap":false},"0.2.0":{"name":"base-engines","description":"Adds support for managing template engines to your base application.","version":"0.2.0","homepage":"https://github.com/node-base/base-engines","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-engines.git"},"bugs":{"url":"https://github.com/node-base/base-engines/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^2.2.0","define-property":"^0.2.5","engine-cache":"^0.19.0","is-valid-app":"^0.1.2","lazy-cache":"^2.0.1"},"devDependencies":{"base":"^0.11.1","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":[],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-option","base-task"]},"reflinks":["base","verb","verb-readme-generator"],"lint":{"reflinks":true}},"gitHead":"2505960ebfa9b580e232479d12502332eaab8a1c","_id":"base-engines@0.2.0","_shasum":"e03d79eea7354be7246ad3fb499779642120d7cc","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.1.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"e03d79eea7354be7246ad3fb499779642120d7cc","size":3886,"noattachment":false,"key":"/base-engines/-/base-engines-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-engines/download/base-engines-0.2.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-engines-0.2.0.tgz_1467061051734_0.9832224124111235"},"directories":{},"publish_time":1467061053954,"_cnpm_publish_time":1467061053954,"_hasShrinkwrap":false},"0.1.1":{"name":"base-engines","description":"Adds support for managing template engines to your base application.","version":"0.1.1","homepage":"https://github.com/node-base/base-engines","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-engines.git"},"bugs":{"url":"https://github.com/node-base/base-engines/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^2.2.0","define-property":"^0.2.5","engine-cache":"^0.18.0","is-valid-app":"^0.1.0","lazy-cache":"^2.0.1"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":[],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-option","base-task"]},"reflinks":["verb","base"],"lint":{"reflinks":true}},"gitHead":"d96f74a17523bef37be6b2400cad59f73f42f87c","_id":"base-engines@0.1.1","_shasum":"e4e4f4ecafbdf7729a363b508460732dd2fdbf13","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e4e4f4ecafbdf7729a363b508460732dd2fdbf13","size":2672,"noattachment":false,"key":"/base-engines/-/base-engines-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-engines/download/base-engines-0.1.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-engines-0.1.1.tgz_1465284427831_0.9378208986017853"},"directories":{},"publish_time":1465284430102,"_cnpm_publish_time":1465284430102,"_hasShrinkwrap":false},"0.1.0":{"name":"base-engines","description":"Adds support for managing template engines to your base application.","version":"0.1.0","homepage":"https://github.com/node-base/base-engines","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/node-base/base-engines.git"},"bugs":{"url":"https://github.com/node-base/base-engines/issues"},"license":"MIT","files":["index.js","utils.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"debug":"^2.2.0","define-property":"^0.2.5","engine-cache":"^0.18.0","lazy-cache":"^2.0.1"},"devDependencies":{"base":"^0.8.1","gulp-format-md":"^0.1.9","mocha":"^2.5.3"},"keywords":[],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["base","base-option","base-task"]},"reflinks":["verb","base"],"lint":{"reflinks":true}},"gitHead":"7e8a4b4179c205bcece1fba869c294772c09257f","_id":"base-engines@0.1.0","_shasum":"e0e0b50a081bee1cd079b7336365013f93729683","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e0e0b50a081bee1cd079b7336365013f93729683","size":2617,"noattachment":false,"key":"/base-engines/-/base-engines-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base-engines/download/base-engines-0.1.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base-engines-0.1.0.tgz_1464760006042_0.7628784119151533"},"directories":{},"publish_time":1464760008486,"_cnpm_publish_time":1464760008486,"_hasShrinkwrap":false}},"readme":"# base-engines [![NPM version](https://img.shields.io/npm/v/base-engines.svg?style=flat)](https://www.npmjs.com/package/base-engines) [![NPM monthly downloads](https://img.shields.io/npm/dm/base-engines.svg?style=flat)](https://npmjs.org/package/base-engines)  [![NPM total downloads](https://img.shields.io/npm/dt/base-engines.svg?style=flat)](https://npmjs.org/package/base-engines) [![Linux Build Status](https://img.shields.io/travis/node-base/base-engines.svg?style=flat&label=Travis)](https://travis-ci.org/node-base/base-engines)\n\n> Adds support for managing template engines to your base application.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save base-engines\n```\n\n## Usage\n\nRegister the plugin with your [base](https://github.com/node-base/base) application:\n\n```js\nvar Base = require('base');\nvar engines = require('base-engines');\nbase.use(engines());\n```\n\n## API\n\n### [.engine](index.js#L45)\n\nRegister a view engine callback `fn` as `ext`. Calls `.setEngine` and `.getEngine` internally.\n\n**Params**\n\n* `exts` **{String|Array}**: String or array of file extensions.\n* `fn` **{Function|Object}**: or `settings`\n* `settings` **{Object}**: Optionally pass engine options as the last argument.\n\n**Example**\n\n```js\napp.engine('hbs', require('engine-handlebars'));\n\n// using consolidate.js\nvar engine = require('consolidate');\napp.engine('jade', engine.jade);\napp.engine('swig', engine.swig);\n\n// get a registered engine\nvar swig = app.engine('swig');\n```\n\n### [.setEngine](index.js#L74)\n\nRegister engine `ext` with the given render `fn` and/or `settings`.\n\n**Params**\n\n* `ext` **{String}**: The engine to set.\n\n**Example**\n\n```js\napp.setEngine('hbs', require('engine-handlebars'), {\n  delims: ['<%', '%>']\n});\n```\n\n### [.getEngine](index.js#L97)\n\nGet registered engine `ext`.\n\n**Params**\n\n* `ext` **{String}**: The engine to get.\n\n**Example**\n\n```js\napp.engine('hbs', require('engine-handlebars'));\nvar engine = app.getEngine('hbs');\n```\n\n## About\n\n### Related projects\n\n* [base-option](https://www.npmjs.com/package/base-option): Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme… [more](https://github.com/node-base/base-option) | [homepage](https://github.com/node-base/base-option \"Adds a few options methods to base, like `option`, `enable` and `disable`. See the readme for the full API.\")\n* [base-task](https://www.npmjs.com/package/base-task): base plugin that provides a very thin wrapper around [https://github.com/doowb/composer](https://github.com/doowb/composer) for adding task methods to… [more](https://github.com/node-base/base-task) | [homepage](https://github.com/node-base/base-task \"base plugin that provides a very thin wrapper around <https://github.com/doowb/composer> for adding task methods to your application.\")\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://github.com/node-base/base) | [homepage](https://github.com/node-base/base \"base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting with a handful of common methods, like `set`, `get`, `del` and `use`.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 6 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 4 | [doowb](https://github.com/doowb) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning 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:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nMIT\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 21, 2017._","_attachments":{},"homepage":"https://github.com/node-base/base-engines","bugs":{"url":"https://github.com/node-base/base-engines/issues"},"license":"MIT"}