{"_id":"@vue/consolidate","_rev":"3735240","name":"@vue/consolidate","description":"Template engine consolidation library (fork)","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"akryum","email":"alphadelta.fg@gmail.com"},{"name":"soda","email":"imyanglan@163.com"},{"name":"yyx990803","email":""}],"time":{"modified":"2025-02-13T06:14:46.000Z","created":"2021-09-21T13:02:56.986Z","1.0.0":"2024-02-13T09:41:52.560Z","0.17.3":"2021-09-21T14:52:26.682Z","0.17.2":"2021-09-21T13:06:36.612Z","0.17.1":"2021-09-21T13:04:52.027Z","0.17.0":"2021-09-21T13:02:56.986Z"},"users":{},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"repository":{"type":"git","url":"git+https://github.com/yyx990803/consolidate.js.git"},"versions":{"1.0.0":{"name":"@vue/consolidate","description":"Template engine consolidation library (fork)","version":"1.0.0","homepage":"https://github.com/yyx990803/consolidate.js","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"repository":{"type":"git","url":"git+https://github.com/yyx990803/consolidate.js.git"},"bugs":{"url":"https://github.com/yyx990803/consolidate.js/issues"},"types":"index.d.ts","license":"MIT","main":"index.js","engines":{"node":">= 0.12.0"},"scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha"},"devDependencies":{"arc-templates":"^0.5.3","atpl":">=0.7.6","babel-core":"^6.26.3","babel-preset-react":"^6.24.1","bracket-template":"^1.1.5","coffee-script":"^1.12.7","dot":"^1.1.3","dust":"^0.3.0","dustjs-helpers":"^1.7.4","dustjs-linkedin":"^2.7.5","eco":"^1.1.0-rc-3","ect":"^0.5.9","ejs":"^3.1.5","eslint":"^7.8.1","eslint-config-standard":"^14.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","haml-coffee":"^1.14.1","hamlet":"^0.3.3","hamljs":"^0.6.2","handlebars":"^4.7.6","hogan.js":"^3.0.2","htmling":"^0.0.8","jade":"^1.11.0","jazz":"^0.0.18","jqtpl":"~1.1.0","just":"^0.1.8","liquid-node":"^3.0.1","liquor":"^0.0.5","lodash":"^4.17.20","marko":"^3.14.4","mocha":"^3.5.3","mote":"^0.2.0","mustache":"^4.0.1","nunjucks":"^3.2.2","plates":"~0.4.11","pug":"^3.0.0","qejs":"^3.0.5","ractive":"^1.3.12","razor-tmpl":"^1.3.1","react":"^16.13.1","react-dom":"^16.13.1","semver":"^7.3.2","should":"*","slm":"^2.0.0","squirrelly":"^5.1.0","swig":"^1.4.2","swig-templates":"^2.0.3","teacup":"^2.0.0","templayed":">=0.2.3","tinyliquid":"^0.2.34","toffee":"^0.3.6","twig":"^1.15.2","twing":"^5.0.2","underscore":"^1.11.0","vash":"^0.13.0","velocityjs":"^2.0.1","walrus":"^0.10.1","whiskers":"^0.4.0"},"keywords":["engine","template","view"],"_id":"@vue/consolidate@1.0.0","gitHead":"a6f999dcac3a35dc7645a5cfab5b2dcd93d63cb5","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"shasum":"5324d5bf09cf1dcf702e9bf1f8d3739385eef724","size":13461,"noattachment":false,"key":"/@vue/consolidate/-/@vue/consolidate-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@vue/consolidate/download/@vue/consolidate-1.0.0.tgz"},"_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"directories":{},"maintainers":[{"name":"akryum","email":"alphadelta.fg@gmail.com"},{"name":"soda","email":"imyanglan@163.com"},{"name":"yyx990803","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consolidate_1.0.0_1707817312382_0.39419111760421144"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-02-13T09:41:52.560Z","publish_time":1707817312560,"_source_registry_name":"default","_cnpm_publish_time":1707817312560},"0.17.3":{"name":"@vue/consolidate","description":"Template engine consolidation library (fork)","version":"0.17.3","homepage":"https://github.com/yyx990803/consolidate.js","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"repository":{"type":"git","url":"https://github.com/yyx990803/consolidate.js.git"},"bugs":{"url":"https://github.com/yyx990803/consolidate.js/issues"},"types":"index.d.ts","license":"MIT","main":"index.js","engines":{"node":">= 0.12.0"},"scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha"},"devDependencies":{"arc-templates":"^0.5.3","atpl":">=0.7.6","babel-core":"^6.26.3","babel-preset-react":"^6.24.1","bracket-template":"^1.1.5","coffee-script":"^1.12.7","dot":"^1.1.3","dust":"^0.3.0","dustjs-helpers":"^1.7.4","dustjs-linkedin":"^2.7.5","eco":"^1.1.0-rc-3","ect":"^0.5.9","ejs":"^3.1.5","eslint":"^7.8.1","eslint-config-standard":"^14.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","haml-coffee":"^1.14.1","hamlet":"^0.3.3","hamljs":"^0.6.2","handlebars":"^4.7.6","hogan.js":"^3.0.2","htmling":"^0.0.8","jade":"^1.11.0","jazz":"^0.0.18","jqtpl":"~1.1.0","just":"^0.1.8","liquid-node":"^3.0.1","liquor":"^0.0.5","lodash":"^4.17.20","marko":"^3.14.4","mocha":"^3.5.3","mote":"^0.2.0","mustache":"^4.0.1","nunjucks":"^3.2.2","plates":"~0.4.11","pug":"^3.0.0","qejs":"^3.0.5","ractive":"^1.3.12","razor-tmpl":"^1.3.1","react":"^16.13.1","react-dom":"^16.13.1","semver":"^7.3.2","should":"*","slm":"^2.0.0","squirrelly":"^5.1.0","swig":"^1.4.2","swig-templates":"^2.0.3","teacup":"^2.0.0","templayed":">=0.2.3","tinyliquid":"^0.2.34","toffee":"^0.3.6","twig":"^1.15.2","twing":"^5.0.2","underscore":"^1.11.0","vash":"^0.13.0","velocityjs":"^2.0.1","walrus":"^0.10.1","whiskers":"^0.4.0"},"keywords":["engine","template","view"],"_id":"@vue/consolidate@0.17.3","dist":{"shasum":"9614d25a2eb263fa5df18ce98b0a576142e0ec83","size":14467,"noattachment":false,"key":"/@vue/consolidate/-/@vue/consolidate-0.17.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@vue/consolidate/download/@vue/consolidate-0.17.3.tgz"},"_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"directories":{},"maintainers":[{"name":"akryum","email":"alphadelta.fg@gmail.com"},{"name":"soda","email":"imyanglan@163.com"},{"name":"yyx990803","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consolidate_0.17.3_1632235946540_0.8325645352407705"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T20:50:07.025Z","publish_time":1632235946682,"_cnpm_publish_time":1632235946682},"0.17.2":{"name":"@vue/consolidate","description":"Template engine consolidation library (fork)","version":"0.17.2","homepage":"https://github.com/yyx990803/consolidate.js","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"repository":{"type":"git","url":"https://github.com/yyx990803/consolidate.js.git"},"bugs":{"url":"https://github.com/yyx990803/consolidate.js/issues"},"types":"index.d.ts","license":"MIT","main":"index.js","engines":{"node":">= 0.12.0"},"scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha"},"devDependencies":{"arc-templates":"^0.5.3","atpl":">=0.7.6","babel-core":"^6.26.3","babel-preset-react":"^6.24.1","bracket-template":"^1.1.5","coffee-script":"^1.12.7","dot":"^1.1.3","dust":"^0.3.0","dustjs-helpers":"^1.7.4","dustjs-linkedin":"^2.7.5","eco":"^1.1.0-rc-3","ect":"^0.5.9","ejs":"^3.1.5","eslint":"^7.8.1","eslint-config-standard":"^14.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","haml-coffee":"^1.14.1","hamlet":"^0.3.3","hamljs":"^0.6.2","handlebars":"^4.7.6","hogan.js":"^3.0.2","htmling":"^0.0.8","jade":"^1.11.0","jazz":"^0.0.18","jqtpl":"~1.1.0","just":"^0.1.8","liquid-node":"^3.0.1","liquor":"^0.0.5","lodash":"^4.17.20","marko":"^3.14.4","mocha":"^3.5.3","mote":"^0.2.0","mustache":"^4.0.1","nunjucks":"^3.2.2","plates":"~0.4.11","pug":"^3.0.0","qejs":"^3.0.5","ractive":"^1.3.12","razor-tmpl":"^1.3.1","react":"^16.13.1","react-dom":"^16.13.1","semver":"^7.3.2","should":"*","slm":"^2.0.0","squirrelly":"^5.1.0","swig":"^1.4.2","swig-templates":"^2.0.3","teacup":"^2.0.0","templayed":">=0.2.3","tinyliquid":"^0.2.34","toffee":"^0.3.6","twig":"^1.15.2","twing":"^5.0.2","underscore":"^1.11.0","vash":"^0.13.0","velocityjs":"^2.0.1","walrus":"^0.10.1","whiskers":"^0.4.0"},"keywords":["engine","template","view"],"_id":"@vue/consolidate@0.17.2","dist":{"shasum":"8a871a638ae94fd88660a235b7b0837538b92e35","size":14475,"noattachment":false,"key":"/@vue/consolidate/-/@vue/consolidate-0.17.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@vue/consolidate/download/@vue/consolidate-0.17.2.tgz"},"_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"directories":{},"maintainers":[{"name":"akryum","email":"alphadelta.fg@gmail.com"},{"name":"soda","email":"imyanglan@163.com"},{"name":"yyx990803","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consolidate_0.17.2_1632229596467_0.8183080503687881"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T20:50:06.131Z","publish_time":1632229596612,"_cnpm_publish_time":1632229596612},"0.17.1":{"name":"@vue/consolidate","description":"Template engine consolidation library (fork)","version":"0.17.1","homepage":"https://github.com/yyx990803/consolidate.js","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"repository":{"type":"git","url":"https://github.com/yyx990803/consolidate.js.git"},"bugs":{"url":"https://github.com/yyx990803/consolidate.js/issues"},"types":"types/index.d.ts","license":"MIT","main":"index.js","engines":{"node":">= 0.12.0"},"scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha"},"devDependencies":{"arc-templates":"^0.5.3","atpl":">=0.7.6","babel-core":"^6.26.3","babel-preset-react":"^6.24.1","bracket-template":"^1.1.5","coffee-script":"^1.12.7","dot":"^1.1.3","dust":"^0.3.0","dustjs-helpers":"^1.7.4","dustjs-linkedin":"^2.7.5","eco":"^1.1.0-rc-3","ect":"^0.5.9","ejs":"^3.1.5","eslint":"^7.8.1","eslint-config-standard":"^14.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","haml-coffee":"^1.14.1","hamlet":"^0.3.3","hamljs":"^0.6.2","handlebars":"^4.7.6","hogan.js":"^3.0.2","htmling":"^0.0.8","jade":"^1.11.0","jazz":"^0.0.18","jqtpl":"~1.1.0","just":"^0.1.8","liquid-node":"^3.0.1","liquor":"^0.0.5","lodash":"^4.17.20","marko":"^3.14.4","mocha":"^3.5.3","mote":"^0.2.0","mustache":"^4.0.1","nunjucks":"^3.2.2","plates":"~0.4.11","pug":"^3.0.0","qejs":"^3.0.5","ractive":"^1.3.12","razor-tmpl":"^1.3.1","react":"^16.13.1","react-dom":"^16.13.1","semver":"^7.3.2","should":"*","slm":"^2.0.0","squirrelly":"^5.1.0","swig":"^1.4.2","swig-templates":"^2.0.3","teacup":"^2.0.0","templayed":">=0.2.3","tinyliquid":"^0.2.34","toffee":"^0.3.6","twig":"^1.15.2","twing":"^5.0.2","underscore":"^1.11.0","vash":"^0.13.0","velocityjs":"^2.0.1","walrus":"^0.10.1","whiskers":"^0.4.0"},"keywords":["engine","template","view"],"_id":"@vue/consolidate@0.17.1","dist":{"shasum":"659d150af6a67f11df09a5678dee061475be60df","size":13768,"noattachment":false,"key":"/@vue/consolidate/-/@vue/consolidate-0.17.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@vue/consolidate/download/@vue/consolidate-0.17.1.tgz"},"_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"directories":{},"maintainers":[{"name":"akryum","email":"alphadelta.fg@gmail.com"},{"name":"soda","email":"imyanglan@163.com"},{"name":"yyx990803","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consolidate_0.17.1_1632229491858_0.5239351376318264"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T20:50:04.436Z","publish_time":1632229492027,"_cnpm_publish_time":1632229492027},"0.17.0":{"name":"@vue/consolidate","description":"Template engine consolidation library (fork)","version":"0.17.0","homepage":"https://github.com/yyx990803/consolidate.js","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"repository":{"type":"git","url":"https://github.com/yyx990803/consolidate.js.git"},"bugs":{"url":"https://github.com/yyx990803/consolidate.js/issues"},"license":"MIT","main":"index.js","engines":{"node":">= 0.12.0"},"scripts":{"lint":"eslint .","pretest":"npm run lint","test":"mocha"},"devDependencies":{"arc-templates":"^0.5.3","atpl":">=0.7.6","babel-core":"^6.26.3","babel-preset-react":"^6.24.1","bracket-template":"^1.1.5","coffee-script":"^1.12.7","dot":"^1.1.3","dust":"^0.3.0","dustjs-helpers":"^1.7.4","dustjs-linkedin":"^2.7.5","eco":"^1.1.0-rc-3","ect":"^0.5.9","ejs":"^3.1.5","eslint":"^7.8.1","eslint-config-standard":"^14.1.1","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","haml-coffee":"^1.14.1","hamlet":"^0.3.3","hamljs":"^0.6.2","handlebars":"^4.7.6","hogan.js":"^3.0.2","htmling":"^0.0.8","jade":"^1.11.0","jazz":"^0.0.18","jqtpl":"~1.1.0","just":"^0.1.8","liquid-node":"^3.0.1","liquor":"^0.0.5","lodash":"^4.17.20","marko":"^3.14.4","mocha":"^3.5.3","mote":"^0.2.0","mustache":"^4.0.1","nunjucks":"^3.2.2","plates":"~0.4.11","pug":"^3.0.0","qejs":"^3.0.5","ractive":"^1.3.12","razor-tmpl":"^1.3.1","react":"^16.13.1","react-dom":"^16.13.1","semver":"^7.3.2","should":"*","slm":"^2.0.0","squirrelly":"^5.1.0","swig":"^1.4.2","swig-templates":"^2.0.3","teacup":"^2.0.0","templayed":">=0.2.3","tinyliquid":"^0.2.34","toffee":"^0.3.6","twig":"^1.15.2","twing":"^5.0.2","underscore":"^1.11.0","vash":"^0.13.0","velocityjs":"^2.0.1","walrus":"^0.10.1","whiskers":"^0.4.0"},"keywords":["engine","template","view"],"_id":"@vue/consolidate@0.17.0","dist":{"shasum":"2bce12a8b127f5f3abec95eb24e3bf90698cfe88","size":13756,"noattachment":false,"key":"/@vue/consolidate/-/@vue/consolidate-0.17.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@vue/consolidate/download/@vue/consolidate-0.17.0.tgz"},"_npmUser":{"name":"yyx990803","email":"yyx990803@gmail.com"},"directories":{},"maintainers":[{"name":"akryum","email":"alphadelta.fg@gmail.com"},{"name":"soda","email":"imyanglan@163.com"},{"name":"yyx990803","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/consolidate_0.17.0_1632229376771_0.4745374405238356"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T20:50:02.739Z","publish_time":1632229376986,"_cnpm_publish_time":1632229376986}},"readme":"> This is a fork that removes the bluebird dependency to use native Node promises. Also requires Node 12+.\n\n# Consolidate.js\n\n  Template engine consolidation library.\n\n## Installation\n\n    $ npm install consolidate\n    \n## Supported Express versions\n\n  - [Express 4.x](https://expressjs.com/fr/4x/api.html)\n  - [Express 3.x](https://expressjs.com/fr/3x/api.html)\n\n## Supported template engines\n\nSome package has the same key name, consolidate will load them according to the order number. By example for dust, consolidate will try to use in this order: `dust`, `dustjs-helpers` and `dustjs-linkedin`. If `dust` is installed, `dustjs-linkedin` will not be used by consolidate.\n\n| Name `cons.*` | Package Name / Order | Website / State |\n| - | - | - |\n| [atpl](https://github.com/soywiz/atpl.js) | [`npm install atpl`](https://www.npmjs.com/package/atpl) | - |\n| [bracket](https://github.com/danlevan/bracket-template) | [`npm install bracket-template`](https://www.npmjs.com/package/bracket-template) | - |\n| [dot](https://github.com/olado/doT) | [`npm install dot`](https://www.npmjs.com/package/dot) | [(website)](http://olado.github.io/doT/) |\n| ~~[dust](https://github.com/akdubya/dustjs)~~ | [`npm install dust`](https://www.npmjs.com/package/dust) (1) | [(website)](http://akdubya.github.com/dustjs/) /  **(unmaintained)**<br>See: dustjs-linkedin |\n| [dust](https://github.com/linkedin/dustjs) | [`npm install dustjs-helpers`](https://www.npmjs.com/package/dustjs-helpers) (2) or<br>[`npm install dustjs-linkedin`](https://www.npmjs.com/package/dustjs-linkedin) (3) | [(website)](http://linkedin.github.io/dustjs/) |\n| ~~[eco](https://github.com/sstephenson/eco)~~ | [`npm install eco`](https://www.npmjs.com/package/eco) | **/!\\ [Security issue](https://github.com/sstephenson/eco/pull/67)** |\n| [ect](https://github.com/baryshev/ect) | [`npm install ect`](https://www.npmjs.com/package/ect) | [(website)](http://ectjs.com/) |\n| [ejs](https://github.com/mde/ejs) | [`npm install ejs`](https://www.npmjs.com/package/ejs) | [(website)](http://ejs.co/) |\n| [hamlet](https://github.com/gregwebs/hamlet.js) | [`npm install hamlet`](https://www.npmjs.com/package/hamlet) | - |\n| [hamljs](https://github.com/visionmedia/haml.js) | [`npm install hamljs`](https://www.npmjs.com/package/hamljs) | - |\n| [haml-coffee](https://github.com/netzpirat/haml-coffee) | [`npm install haml-coffee`](https://www.npmjs.com/package/haml-coffee) | - |\n| [handlebars](https://github.com/wycats/handlebars.js/) | [`npm install handlebars`](https://www.npmjs.com/package/handlebars) | [(website)](http://handlebarsjs.com/) |\n| [hogan](https://github.com/twitter/hogan.js) | [`npm install hogan.js`](https://www.npmjs.com/package/hogan.js) | [(website)](http://twitter.github.com/hogan.js/) |\n| [htmling](https://github.com/codemix/htmling) | [`npm install htmling`](https://www.npmjs.com/package/htmling) | - |\n| ~~[jade](https://github.com/visionmedia/jade)~~ | [`npm install jade`](https://www.npmjs.com/package/jade) | [(website)](http://jade-lang.com/) / **(renamed `pug`)** |\n| [jazz](https://github.com/shinetech/jazz) | [`npm install jazz`](https://www.npmjs.com/package/jazz) | - |\n| ~~[jqtpl](https://github.com/kof/jqtpl)~~ | [`npm install jqtpl`](https://www.npmjs.com/package/jqtpl) | **(deprecated)** |\n| [just](https://github.com/baryshev/just) | [`npm install just`](https://www.npmjs.com/package/just) | - |\n| [liquid](https://github.com/leizongmin/tinyliquid) | [`npm install tinyliquid`](https://www.npmjs.com/package/tinyliquid) | [(website)](http://liquidmarkup.org/)<br>**will never add any new features** |\n| [liquor](https://github.com/chjj/liquor) | [`npm install liquor`](https://www.npmjs.com/package/liquor) | - |\n| [lodash](https://github.com/bestiejs/lodash) | [`npm install lodash`](https://www.npmjs.com/package/lodash) | [(website)](http://lodash.com/) |\n| [marko](https://github.com/marko-js/marko) | [`npm install marko`](https://www.npmjs.com/package/marko) | [(website)](http://markojs.com) |\n| [mote](https://github.com/satchmorun/mote) | [`npm install mote`](https://www.npmjs.com/package/mote) | [(website)](http://satchmorun.github.io/mote/) |\n| [mustache](https://github.com/janl/mustache.js) | [`npm install mustache`](https://www.npmjs.com/package/mustache) | - |\n| [nunjucks](https://github.com/mozilla/nunjucks) | [`npm install nunjucks`](https://www.npmjs.com/package/nunjucks) | [(website)](https://mozilla.github.io/nunjucks) |\n| [plates](https://github.com/flatiron/plates) | [`npm install plates`](https://www.npmjs.com/package/plates) | - |\n| [pug](https://github.com/pugjs/pug) | [`npm install pug`](https://www.npmjs.com/package/pug) | [(website)](http://jade-lang.com/) / **(formerly jade)** |\n| [qejs](https://github.com/jepso/QEJS) | [`npm install qejs`](https://www.npmjs.com/package/qejs) | - |\n| [ractive](https://github.com/ractivejs/ractive) | [`npm install ractive`](https://www.npmjs.com/package/ractive) | - |\n| [razor](https://github.com/kinogam/kino.razor) | [`npm install razor`](https://www.npmjs.com/package/razor) | - |\n| [react](https://github.com/facebook/react) | [`npm install react`](https://www.npmjs.com/package/react) | - |\n| [slm](https://github.com/slm-lang/slm) | [`npm install slm`](https://www.npmjs.com/package/slm) | - |\n| [squirrelly](https://github.com/squirrellyjs/squirrelly) | [`npm install squirrelly`](https://www.npmjs.com/package/squirrelly) | [(website)](https://squirrelly.js.org) |\n| ~~[swig](https://github.com/paularmstrong/swig)~~ | [`npm install swig`](https://www.npmjs.com/package/swig) (1) | **(unmaintained)**<br>See: swig-templates |\n| [swig](https://github.com/node-swig/swig-templates) | [`npm install swig-templates`](https://www.npmjs.com/package/swig-templates) (2) | - |\n| [teacup](https://github.com/goodeggs/teacup) | [`npm install teacup`](https://www.npmjs.com/package/teacup) | - |\n| [templayed](https://github.com/archan937/templayed.js/) | [`npm install templayed`](https://www.npmjs.com/package/templayed) | [(website)](http://archan937.github.com/templayed.js/)  |\n| [toffee](https://github.com/malgorithms/toffee) | [`npm install toffee`](https://www.npmjs.com/package/toffee) | - |\n| [twig](https://github.com/justjohn/twig.js) | [`npm install twig`](https://www.npmjs.com/package/twig) | [(wiki)](https://github.com/twigjs/twig.js/wiki/Implementation-Notes) |\n| [twing](https://github.com/NightlyCommit/twing) | [`npm install twing`](https://www.npmjs.com/package/twing) | [(website)](https://nightlycommit.github.io/twing/) |\n| [underscore](https://github.com/documentcloud/underscore) | [`npm install underscore`](https://www.npmjs.com/package/underscore) | [(website)](http://underscorejs.org/#template) |\n| [vash](https://github.com/kirbysayshi/vash) | [`npm install vash`](https://www.npmjs.com/package/vash) | - |\n| [velocityjs](https://github.com/julianshapiro/velocity) | [BETA](https://www.npmjs.com/package/velocity-animate) | [(website)](http://velocityjs.org/) |\n| [walrus](https://github.com/jeremyruppel/walrus) | [`npm install walrus`](https://www.npmjs.com/package/walrus) | [(website)](http://documentup.com/jeremyruppel/walrus/) |\n| [whiskers](https://github.com/gsf/whiskers.js) | [`npm install whiskers`](https://www.npmjs.com/package/whiskers) | - | \n\n__NOTE__: you must still install the engines you wish to use, add them to your package.json dependencies.\n\n## API\n\n  All templates supported by this library may be rendered using the signature `(path[, locals], callback)` as shown below, which happens to be the signature that Express supports so any of these engines may be used within Express.\n\n__NOTE__: All this example code uses cons.swig for the swig template engine. Replace swig with whatever templating you are using. For example, use cons.hogan for hogan.js, cons.jade for jade, etc. `console.log(cons)` for the full list of identifiers.\n\n```js\nvar cons = require('consolidate');\ncons.swig('views/page.html', { user: 'tobi' }, function(err, html){\n  if (err) throw err;\n  console.log(html);\n});\n```\n\n  Or without options / local variables:\n\n```js\nvar cons = require('consolidate');\ncons.swig('views/page.html', function(err, html){\n  if (err) throw err;\n  console.log(html);\n});\n```\n\n  To dynamically pass the engine, simply use the subscript operator and a variable:\n\n```js\nvar cons = require('consolidate')\n  , name = 'swig';\n\ncons[name]('views/page.html', { user: 'tobi' }, function(err, html){\n  if (err) throw err;\n  console.log(html);\n});\n```\n\n### Promises\n\n  Additionally, all templates optionally return a promise if no callback function is provided. The promise represents the eventual result of the template function which will either resolve to a string, compiled from the template, or be rejected. Promises expose a `then` method which registers callbacks to receive the promise’s eventual value and a `catch` method which the reason why the promise could not be fulfilled. Promises allow more synchronous-like code structure and solve issues like race conditions.\n\n```js\nvar cons = require('consolidate');\n\ncons.swig('views/page.html', { user: 'tobi' })\n  .then(function (html) {\n    console.log(html);\n  })\n  .catch(function (err) {\n    throw err;\n  });\n```\n\n## Caching\n\n To enable caching simply pass `{ cache: true }`. Engines _may_ use this option to cache things reading the file contents, compiled `Function`s etc. Engines which do _not_ support this may simply ignore it. All engines that consolidate.js implements I/O for will cache the file contents, ideal for production environments.\n When using consolidate directly: `cons.swig('views/page.html', { user: 'tobi', cache:true }, callback);`\n Using supported Express versions: `app.locals.cache = true` or set NODE_ENV to 'production' and Express will do this for you.\n\n## Express example\n\n```js\nvar express = require('express')\n  , cons = require('consolidate')\n  , app = express();\n\n// assign the swig engine to .html files\napp.engine('html', cons.swig);\n\n// set .html as the default extension\napp.set('view engine', 'html');\napp.set('views', __dirname + '/views');\n\nvar users = [];\nusers.push({ name: 'tobi' });\nusers.push({ name: 'loki' });\nusers.push({ name: 'jane' });\n\napp.get('/', function(req, res){\n  res.render('index', {\n    title: 'Consolidate.js'\n  });\n});\n\napp.get('/users', function(req, res){\n  res.render('users', {\n    title: 'Users',\n    users: users\n  });\n});\n\napp.listen(3000);\nconsole.log('Express server listening on port 3000');\n```\n\n## Template Engine Instances\n\nTemplate engines are exposed via the `cons.requires` object, but they are not instantiated until you've called the `cons[engine].render()` method. You can instantiate them manually beforehand if you want to add filters, globals, mixins, or other engine features.\n\n```js\nvar cons = require('consolidate'),\n  nunjucks = require('nunjucks');\n\n// add nunjucks to requires so filters can be\n// added and the same instance will be used inside the render method\ncons.requires.nunjucks = nunjucks.configure();\n\ncons.requires.nunjucks.addFilter('foo', function () {\n  return 'bar';\n});\n```\n\n## Notes\n\n* If you're using Nunjucks, please take a look at the `exports.nunjucks.render` function in `lib.consolidate.js`.  You can pass your own engine/environment via `options.nunjucksEnv`, or if you want to support Express you can pass `options.settings.views`, or if you have another use case, pass `options.nunjucks` (see the code for more insight).\n* You can pass **partials** with `options.partials`\n* For using **template inheritance** with nunjucks, you can pass a loader\n  with `options.loader`.\n* To use **filters** with tinyliquid, use `options.filters` and specify an array of properties, each of which is a named filter function. A filter function takes a string as a parameter and returns a modified version of it.\n* To use **custom tags** with tinyliquid, use `options.customTags` to specify an array of tag functions that follow the tinyliquid [custom tag](https://github.com/leizongmin/tinyliquid/wiki/Custom-Tag) definition.\n* The default directory used with the **include** tag with tinyliquid is the current working directory. To override this, use `options.includeDir`.\n* `React` To render content into a html base template (eg. `index.html` of your React app), pass the path of the template with `options.base`.\n\n## Running tests\n\n  Install dev deps:\n\n    $ npm install -d\n\n  Run the tests:\n\n    $ make test\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2011-2016 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_attachments":{},"homepage":"https://github.com/yyx990803/consolidate.js","bugs":{"url":"https://github.com/yyx990803/consolidate.js/issues"},"license":"MIT"}