{"_id":"jade-browser","_rev":"49-8ed6466890beaad7fa1551bf4ac77f9d","name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","dist-tags":{"latest":"0.0.14"},"versions":{"0.0.1":{"author":{"name":"Nathan White","email":"nw@nwhite.net"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.1","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.14.2","uglify-js":"1.0.6"},"devDependencies":{},"_id":"jade-browser@0.0.1","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"b1bc493a79515e1dd26a9f39043833f1832011bb","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.1.tgz","integrity":"sha512-qU25S4YRWhkY10H6oKhO9AVKjcGCKAbZYrif7W8M05fooLRlOuFvIP+a21Wh4viWoAmSkv/My7OWjj8llXm1dw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4mrN8Mg0pTpS1Hj2+0xcuuw0oeE9BPJtKqMe7Lt9ZtQIhAOGA3VRmApvHmQrqGCr5KgVZMYZJVfaIsh1aVDqbBcIn"}]},"scripts":{},"maintainers":[{"name":"nw","email":"nw@nwhite.net"}],"directories":{}},"0.0.2":{"author":{"name":"Nathan White","email":"nw@nwhite.net"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.2","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.14.2","uglify-js":"1.0.6"},"devDependencies":{},"_id":"jade-browser@0.0.2","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"d9fe2d5f19e987d8f2a7a74440e06d65c344ce13","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.2.tgz","integrity":"sha512-+UjLlkt0HE9UNdwYXSFVf2DQz8od9gWsjvo4o1LI9FyRf283FcDihpniQ8x6QtGkMbAkVokOKBO/ZIgwtn6NTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICta+kOGZdQTInlYIbEBTbJ7fCsHm6uuKJrgJuAL1gwzAiA+4jYrA+s8qijmXBwP7lvK4Kc3jz6V9mgklv4Y22hwnA=="}]},"scripts":{},"maintainers":[{"name":"nw","email":"nw@nwhite.net"}],"directories":{}},"0.0.4":{"author":{"name":"Storify","email":"dev@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.4","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.14.2","async":"0.1.12","glob":"2.0.9","uglify-js":"1.0.6"},"devDependencies":{},"_id":"jade-browser@0.0.4","_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"70a9590b30d49d1bf1a35a7fe2eb17060cda8dfd","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.4.tgz","integrity":"sha512-l6t8FwrQvGq+Eq4i6Lc2l953tKiRdjDt2cnIzefJUR+vLhvz2F/r4AHnbQ4g/PrSeW8X0V4xjVVDFF3+a0+Oug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSRZjfSFOn16MmTeX5XwNovnLC4F+jgI3k5+HsiUeDzQIga0G6UmzSams5rwh/++gXEmznuwpDwYw0QmkHY00HKek="}]},"scripts":{},"maintainers":[{"name":"nw","email":"nw@nwhite.net"}],"directories":{}},"0.0.5":{"author":{"name":"Storify","email":"dev@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.5","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.20.3","async":"0.1.18","glob":"2.1.0","uglify-js":"1.2.5"},"_npmUser":{"name":"storify","email":"dev@storify.com"},"_id":"jade-browser@0.0.5","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"eef6ad485509752284084ec5b12c7b75bae45c26","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.5.tgz","integrity":"sha512-7fP6czcNgDoKlgiUvXGnSVxu6NX4hxbueCCN1pFEuOF+JQLrAlHU3Ci6pdsYOhpEY84cbLvjplWPLGzmAdeDog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk+UODlk6gJXn459Km8Z2A6nBqTbOXqJOT1J8fqpzdcwIgDm2w+Z+NvFzsKGcamSe8sLsA/hcW4o5jFGbHAqF38Yg="}]},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"}],"directories":{}},"0.0.6":{"author":{"name":"Storify","email":"dev@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.6","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.20.3","async":"0.1.18","glob":"3.1.7","uglify-js":"1.2.5"},"devDependencies":{},"_npmUser":{"name":"storify","email":"dev@storify.com"},"_id":"jade-browser@0.0.6","_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"3564ec9dc062f61a1104ff7faf6c41bdffd4ed60","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.6.tgz","integrity":"sha512-lMiKMKib3VoUDU21T4soHnJbtrzWptBZbFXNT+jSmPVlmS5JRSwzwkNj1jfJ6rmieBbzLEl+lWfRvye+0D0zUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDQArCF2U65FAn2rmkjIkRSrFY7yI9aV+W/whBg/09KCgIhAJZNGlE7bxBlJxUJ+tBNkyTne10RVhfz2SLxMkxWEZ/c"}]},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"}],"directories":{}},"0.0.7":{"author":{"name":"Storify","email":"dev@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.7","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.20.3","async":"0.1.18","glob":"3.1.7","uglify-js":"1.2.5"},"devDependencies":{},"optionalDependencies":{},"_npmUser":{"name":"storify","email":"dev@storify.com"},"_id":"jade-browser@0.0.7","_engineSupported":true,"_npmVersion":"1.1.10","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"c79b507184084f6aee0ead739f9c50bfda13f09a","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.7.tgz","integrity":"sha512-yKMptB3zoMmJpL4L+OPFF38zi5B7wqtDPLri8hQLJg9QcVhvNL3n/SwhYfl09cibJrCDSkosQqw8uGDWuoYjZA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB5Tqn4x2SVpgPP4rHUX0F2vvVQFRkJUVdvLH/kvmo/SAiA3D6TfQzG1MTGFVOiZZKQmGLZwg4Qe+v1hSWSAg6MzKg=="}]},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"}],"directories":{}},"0.0.8":{"author":{"name":"Storify","email":"dev@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.8","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.20.3","async":"0.1.18","glob":"3.1.7","uglify-js":"1.2.5"},"devDependencies":{},"optionalDependencies":{},"_npmUser":{"name":"storify","email":"dev@storify.com"},"_id":"jade-browser@0.0.8","_engineSupported":true,"_npmVersion":"1.1.10","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"5c94cbcc26d3fe5391bcc747ac5dc1766a703b08","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.8.tgz","integrity":"sha512-pVK6fG09f4niKVzgXm8cbunuyIbhIRPFa9XiyK/WchOh7kBQ3Ab35jwdibctKFgYVv5FZrb9Thk/Jw+0zMcxHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH7otZbf4sjq/U7EpS5gXrMvRwVQuhLYakYu4ANw0JbiAiArjXMH7WTAF6ozS32aON0HaZlPPCMCD/7bPLRGUPL12Q=="}]},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"}],"directories":{}},"0.0.9":{"author":{"name":"Storify","email":"dev@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.9","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.20.3","async":"0.1.18","glob":"3.1.7","uglify-js":"1.2.5"},"devDependencies":{},"optionalDependencies":{},"_npmUser":{"name":"storify","email":"dev@storify.com"},"_id":"jade-browser@0.0.9","_engineSupported":true,"_npmVersion":"1.1.21","_nodeVersion":"v0.8.2","_defaultsLoaded":true,"dist":{"shasum":"3d69efad9fd08d402bcaa35a8afb802559ef01d0","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.9.tgz","integrity":"sha512-uMKjd/f4N2z3wXg2FOdYUcBx1nSC5hQvyRJTDqQcK9n1p9L8CqVGOA2x6WcfDTT4dKoygIISEUw/+q/pfDZTaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICy1C2rlTmP3v1GT0VIXaM7J9nvPzZrYBCTHE7QR9/7uAiEAwv2QrU7gPDGoW4uHZzpghVjIpRX4zccx8Ae1gn+Tk1I="}]},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"}],"directories":{}},"0.0.13":{"author":{"name":"Storify","email":"api@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.13","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.20.3","async":"0.1.18","glob":"3.1.7","uglify-js":"1.2.5"},"devDependencies":{"mocha":"1.11.0","expect.js":"0.2.0","express":"3.2.6","superagent":"0.14.9"},"scripts":{"test":"mocha test"},"optionalDependencies":{},"_id":"jade-browser@0.0.13","dist":{"shasum":"63d6e61f682851614774ea5f54b50309f027c407","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.13.tgz","integrity":"sha512-RMQy4dgkLYMpuXKOQIgwz3BhazzfZaREaAV0fjk9x1r7jPP9aGMlLfS8f/9H9mdDTWkq5WQuWthtuq+UUy1rgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNSHmuUpdJxHrhIZyYaYLht17+8v6b7l+/dLuB2X6xDgIgPeq3K/j0ZfH7upRML0Xz/XEGIc1xssGV66AaEEBxmW0="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"storify","email":"api@storify.com"},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"}]},"0.0.14":{"author":{"name":"Storify","email":"api@storify.com"},"name":"jade-browser","description":"express/connect middleware that serves jade compiled templates to the browser","version":"0.0.14","repository":{"url":"https://github.com/storify/jade-browser/"},"main":"./index.js","engines":{"node":">= 0.4"},"dependencies":{"jade":"0.20.3","async":"0.1.18","glob":"3.1.7","uglify-js":"1.2.5"},"devDependencies":{"mocha":"1.11.0","expect.js":"0.2.0","express":"3.2.6","superagent":"0.14.9"},"scripts":{"test":"mocha test"},"optionalDependencies":{},"_id":"jade-browser@0.0.14","dist":{"shasum":"77dade71b9fa8aca880ef3c699938c7c6b2df8d8","tarball":"https://registry.npmjs.org/jade-browser/-/jade-browser-0.0.14.tgz","integrity":"sha512-jCgq9snsDP6g1egfDH7pvHZsADslGAZrSXj7HIvjOJ/G3IKu5d0L6LdSPDa0lxSwjMIHjh30akB3zTDkDAEEwg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCXORz2nwIHB/VzmHcyff+FMUHyNIGlfU8duc7IGzXeAIgeS3bSgLYF5Q/KK39Zl/npL3u2iJ1Ra4EPYeGXWOGLSM="}]},"_from":".","_npmVersion":"1.2.11","_npmUser":{"name":"storify","email":"philippe.modard@gmail.com"},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"},{"name":"philmod","email":"philippe.modard@gmail.com"},{"name":"azat","email":"azat.mardanov@gmail.com"}]}},"maintainers":[{"name":"nw","email":"nw@nwhite.net"},{"name":"storify","email":"dev@storify.com"},{"name":"philmod","email":"philippe.modard@gmail.com"},{"name":"azat","email":"azat.mardanov@gmail.com"}],"time":{"modified":"2022-06-19T03:33:59.739Z","created":"2011-08-17T22:35:54.613Z","0.0.1":"2011-08-17T22:35:55.104Z","0.0.2":"2011-08-17T23:50:13.007Z","0.0.4":"2011-10-22T01:45:25.872Z","0.0.5":"2012-02-28T20:54:42.570Z","0.0.6":"2012-03-20T23:02:43.789Z","0.0.7":"2012-03-26T18:18:37.109Z","0.0.8":"2012-03-29T23:55:31.703Z","0.0.9":"2012-08-07T19:44:05.633Z","0.0.13":"2013-06-19T19:03:46.570Z","0.0.14":"2013-08-21T21:20:57.603Z"},"author":{"name":"Storify","email":"api@storify.com"},"repository":{"url":"https://github.com/storify/jade-browser/"},"readme":"# Jade Browser\n\n[![Jade Browser build status](https://travis-ci.org/storify/jade-browser.png)](https://travis-ci.org/storify/jade-browser)\n\n\n  Middleware for express/connect to expose jade templates to the web browser. It provides a few additional features like express-like render function with partial handling.\n  \n```javascript\nvar express = require('express')\n  , jade_browser = require('jade-browser')\n  , app = express.createServer();\n  \napp.use(jade_browser(url_endpoint, template_dir, options));\n```\n\nor for Express.js v3.x:\n\n```javascript\nvar express = require('express')\n  , jade_browser = require('jade-browser')\n  , app = express();\n  \napp.use(jade_browser(url_endpoint, template_dir, options));\n```\n\n## Installation\n\n    $ npm install jade-browser\n  \n## Features\n\n  * Jade templates are served as compiled functions.\n    * removes browser compatibility issues\n    * increases speed of template execution\n    * reduces file transfer size\n  * ability to minify output\n  * option to attach cache control\n  * provides helpers for handling rendering/partials just like express.\n  * relative path handling even from within partials.\n  * ability to completely namespace to avoid any naming collisions on the browser.\n  * partials inherit parent locals\n\n## Usage\n\n### In Node.js\n\n  As middleware jade-browser is simple to use.\n\n```javascript\nvar express = require('express')\n  , jade_browser = require('jade-browser')\n  , app = express.createServer();\n\napp.use(jade_browser('/js/templates.js', '**', options));\n```\n\n### Params\n\n  - `filename`  The filename of the resulting compiled templates file\n  - `patterns`  A single string or array of patterns used to glob for template files\n  - `options`   Options object, see below (optional)\n\n#### Options\n\n  - `root`      The root of the views (default: __dirname)\n  - `namespace` Namespace for the browser (default: 'jade')\n  - `minify`    Minifies the output (default: false)\n  - `maxAge`    Time in seconds to cache the results (default: 86400)\n  - `noCache`   Recompiles the output on every request (default: false)\n  \n### Browser\n\n```javascript\njade.render('path/to/template', { values: for_template });\n```\n    \nFor direct access (for templates that have no need for partials).\n\n```javascript\njade.templates['path/to/template.jade'](locals);\n```\n    \nNote: With render '.jade' extension is not required. Relative paths can be used in templates and in render function.\n\n```javascript\njade.render('path/../to/../test');\n```\n\n## Credits\n\n  Large amounts of this code is inspired by TJ. Parts of express-expose and internal parts of express are recycled to make this happen. Contibuting docs part is taken from [Mongoosastic](https://github.com/storify/mongoosastic/blob/master/readme.md).\n\n## Contributors\n\nThe list of contributors according to `git shortlog -s -n`:\n\n* 15  Conner Petzold ([cpetzold](http://github.com/cpetzold))\n* 12  Nathan White ([nw](http://github.com/nw))\n* 9  Azat Mardanov\n* 4  Patrick Forringer\n* 2  Vincent Battaglia\n* 2  Arlo Breault\n* 2  RashFael\n* 1  Adrian Bravo ([adrianbravo](http://github.com/adrianbravo))\n\n\n## Contributing\n\nPull requests are always welcome as long as an accompanying test case is\nassociated. \n\nThis project is configured to use [git\nflow](https://github.com/nvie/gitflow/) and the following conventions\nare used:\n\n* ``dev`` - represents current active development and can possibly be\n  unstable. \n\n* ``master`` - pristine copy of repository, represents the currently\n  stable release found in the npm index.\n\n* ``feature/**`` - represents a new feature being worked on\n\nIf you wish to contribute, the only requirement is to: \n\n- branch a new feature branch from develop (if you're working on an\n  issue, prefix it with the issue number)\n- make the changes, with accompanying test cases\n- issue a pull request against develop branch\n\nAlthough I use git flow and prefix feature branches with \"feature/\" I\ndon't require this for pull requests... all I care is that the feature\nbranch name makes sense. \n\nPulls requests against master or pull requests branched from master will\nbe rejected.\n\n#### Examples\n\nExamples of good branch names:\n\n* 12-amd-support\n* feature/12-amd-support\n\n\n### Running Tests\n\nIn order to run the tests which are in `test` folder, you will need:\n\n* Node.js\n* NPM\n\nWith those installed, running `npm install` and ''npm test'' will run the tests.\n\n    \n## License \n\n(The MIT License)\n\nCopyright (c) 2009-2011 Storify &lt;info@storify.com&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","readmeFilename":"README.md","users":{"takethefire":true,"bvmiko":true,"xvytis":true,"rubiadias":true,"zbujhmz":true}}