{"_id":"@donotjs/donot-transform-pug","_rev":"13-70f9c0002de589dae66c07b8ed7b65b9","name":"@donotjs/donot-transform-pug","description":"pug template support for donot.","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@donotjs/donot-transform-pug","version":"1.0.0","description":"pug template support for donot.","author":{"name":"Kristian Trenskow","email":"trenskow@me.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/donotjs/donot-transform-pug.git"},"dependencies":{"@donotjs/donot-transform":"^1.0.5","merge":"^1.2.0","pug":"^2.0.0-beta2"},"devDependencies":{"chai":"^3.0.0","chai-as-promised":"^5.3.0","mocha":"^2.2.5"},"scripts":{"test":"mocha test/*"},"license":"MIT","gitHead":"1a37f5d8af0e50d440586c99a6504e9e58782b75","bugs":{"url":"https://github.com/donotjs/donot-transform-pug/issues"},"homepage":"https://github.com/donotjs/donot-transform-pug#readme","_id":"@donotjs/donot-transform-pug@1.0.0","_shasum":"7c25c876cfc616a49a32b92230887499ae754bf0","_from":".","_npmVersion":"3.9.2","_nodeVersion":"5.9.0","_npmUser":{"name":"trenskow","email":"trenskow@me.com"},"dist":{"shasum":"7c25c876cfc616a49a32b92230887499ae754bf0","tarball":"https://registry.npmjs.org/@donotjs/donot-transform-pug/-/donot-transform-pug-1.0.0.tgz","integrity":"sha512-gN8xg1Tb5BfbFaYJIAUqh8Tmuep8jyLVeWPdE1OZ21sr44LZMtjXgn0GiuWQ4K30zA/aFsDWBX/B87OORv91XQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWF+QousHVlzJGcXqlQbOtMx6wwdNRNoQHHJxQn6TcXAiEA1jFuPdVH7F2vh8HrSSiOwTlWQTNDiCpmeYPcCFF9pZs="}]},"maintainers":[{"name":"trenskow","email":"trenskow@me.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/donot-transform-pug-1.0.0.tgz_1465035674806_0.7715396196581423"},"directories":{},"deprecated":"This package is no longer actively maintained."},"1.0.1":{"name":"@donotjs/donot-transform-pug","version":"1.0.1","description":"pug template support for donot.","author":{"name":"Kristian Trenskow","email":"trenskow@me.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/donotjs/donot-transform-pug.git"},"dependencies":{"@donotjs/donot-transform":"^1.0.5","merge":"^1.2.0","pug":"^2.0.0-beta2"},"devDependencies":{"chai":"^3.0.0","chai-as-promised":"^5.3.0","mocha":"^2.2.5"},"scripts":{"test":"mocha test/*"},"license":"MIT","gitHead":"e68c61e9ef23f301e63ebb9b8301242dc3aa38de","bugs":{"url":"https://github.com/donotjs/donot-transform-pug/issues"},"homepage":"https://github.com/donotjs/donot-transform-pug#readme","_id":"@donotjs/donot-transform-pug@1.0.1","_shasum":"944ddcfa702c27023ba1258ac9bb73fb841db3b5","_from":".","_npmVersion":"3.9.2","_nodeVersion":"5.9.0","_npmUser":{"name":"trenskow","email":"trenskow@me.com"},"dist":{"shasum":"944ddcfa702c27023ba1258ac9bb73fb841db3b5","tarball":"https://registry.npmjs.org/@donotjs/donot-transform-pug/-/donot-transform-pug-1.0.1.tgz","integrity":"sha512-ZC92g0iEsMB4ww7BWOSp4OexW+L3tRrKbPN1GzlFd9U6mxfTaJeeFFjyotJpUoKNUC7LV9YIKsoa3e9VYSL4wQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSmwkWzI8fyjkbcmVTegswsCO9+oPYeBU45jcfEP1qgwIhANICqOCIy/2CYvmVtCYfJNqqABZ+Ps6N8RJ/s1IgX6JX"}]},"maintainers":[{"name":"trenskow","email":"trenskow@me.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/donot-transform-pug-1.0.1.tgz_1465118263715_0.9690649711992592"},"directories":{},"deprecated":"This package is no longer actively maintained."},"1.0.3":{"name":"@donotjs/donot-transform-pug","version":"1.0.3","description":"pug template support for donot.","author":{"name":"Kristian Trenskow","email":"trenskow@me.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/donotjs/donot-transform-pug.git"},"dependencies":{"@donotjs/donot-transform":"^1.0.5","merge":"^1.2.0","pug":"^2.0.0-beta2"},"devDependencies":{"chai":"^3.0.0","chai-as-promised":"^5.3.0","mocha":"^2.2.5"},"scripts":{"test":"mocha test/*"},"license":"MIT","gitHead":"b53f214340ef42eac98e97064e22de32c7663723","bugs":{"url":"https://github.com/donotjs/donot-transform-pug/issues"},"homepage":"https://github.com/donotjs/donot-transform-pug#readme","_id":"@donotjs/donot-transform-pug@1.0.3","_shasum":"b93bc4ff231d62b652e1e0ddc512fee86b4cef2d","_from":".","_npmVersion":"3.9.2","_nodeVersion":"5.9.0","_npmUser":{"name":"trenskow","email":"trenskow@me.com"},"dist":{"shasum":"b93bc4ff231d62b652e1e0ddc512fee86b4cef2d","tarball":"https://registry.npmjs.org/@donotjs/donot-transform-pug/-/donot-transform-pug-1.0.3.tgz","integrity":"sha512-FOi95EOaMnXchJTt8h7O5c4AjZQS00irYyzLwk1mf1owf4BmGxKt2C0Qw4uiHnPIU0QZ47e3kVWALUaemkc3tA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDg1pUjSVMBBVD2omH6yXysI7mx7zoBThcbGo/HQWDZAgIhAPfvGOJpfmEYb6HmGWFmm/5iZw/yx0kT1J2fA6HMQ3/k"}]},"maintainers":[{"name":"trenskow","email":"trenskow@me.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/donot-transform-pug-1.0.3.tgz_1465144355740_0.8726924590300769"},"directories":{},"deprecated":"This package is no longer actively maintained."},"1.0.4":{"name":"@donotjs/donot-transform-pug","version":"1.0.4","description":"pug template support for donot.","author":{"name":"Kristian Trenskow","email":"trenskow@me.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/donotjs/donot-transform-pug.git"},"dependencies":{"@donotjs/donot-transform":"^1.0.5","merge":"^1.2.0","pug":"^2.0.0-beta2"},"devDependencies":{"chai":"^3.0.0","chai-as-promised":"^5.3.0","mocha":"^2.2.5"},"scripts":{"test":"mocha test/*"},"license":"MIT","gitHead":"ab6d6586adf5731d6bc77c61bfddecf5172a990a","bugs":{"url":"https://github.com/donotjs/donot-transform-pug/issues"},"homepage":"https://github.com/donotjs/donot-transform-pug#readme","_id":"@donotjs/donot-transform-pug@1.0.4","_shasum":"b3fce17a8ae0f46c71bf91fad3b073997c4caad0","_from":".","_npmVersion":"3.9.2","_nodeVersion":"5.9.0","_npmUser":{"name":"trenskow","email":"trenskow@me.com"},"dist":{"shasum":"b3fce17a8ae0f46c71bf91fad3b073997c4caad0","tarball":"https://registry.npmjs.org/@donotjs/donot-transform-pug/-/donot-transform-pug-1.0.4.tgz","integrity":"sha512-0bArm94e4APo4Vyjw6PAgQxFRwBAUPQI8YpfsGIUM4sjW4hVg0ov+P7pjNRGWaazVJCDW++KshTjk+y1KZQCxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFN/gfrA+ugG6CK91TkwTyb5NBXZ12CFgb8RTsYadaphAiEA/jFGZVudTGEvLOMCGXEFQTf7V0EWsybNb0Il0oavLgA="}]},"maintainers":[{"name":"trenskow","email":"trenskow@me.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/donot-transform-pug-1.0.4.tgz_1465205605852_0.6517262461129576"},"directories":{},"deprecated":"This package is no longer actively maintained."},"1.0.5":{"name":"@donotjs/donot-transform-pug","version":"1.0.5","description":"pug template support for donot.","author":{"name":"Kristian Trenskow","email":"trenskow@me.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/donotjs/donot-transform-pug.git"},"dependencies":{"@donotjs/donot-transform":"^1.0.5","merge":"^1.2.0","pug":"^2.0.0-beta2"},"devDependencies":{"chai":"^3.0.0","chai-as-promised":"^5.3.0","mocha":"^2.2.5"},"scripts":{"test":"mocha test/*"},"license":"MIT","gitHead":"b6b0fff1611c286d5b3e9f145fe117a9f7be8d13","bugs":{"url":"https://github.com/donotjs/donot-transform-pug/issues"},"homepage":"https://github.com/donotjs/donot-transform-pug#readme","_id":"@donotjs/donot-transform-pug@1.0.5","_shasum":"425133dccf15393b6544ce72f83dd3605ec558a2","_from":".","_npmVersion":"3.9.2","_nodeVersion":"5.9.0","_npmUser":{"name":"trenskow","email":"trenskow@me.com"},"dist":{"shasum":"425133dccf15393b6544ce72f83dd3605ec558a2","tarball":"https://registry.npmjs.org/@donotjs/donot-transform-pug/-/donot-transform-pug-1.0.5.tgz","integrity":"sha512-LToH6hh2xXbIEUhqrAfBKOa7p8xoCwXGMBMMLtG1l9FMnEDlblnVgSrQb5XYTr7z1ObZoZWE5sSXUBFYWQJY5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4cBc4rLuq5gcb9he6Y5iiDS5a+qX9ZHUijV8Tw3k/fAiEAuJ389yLHpgo6FbVO4kNfViChKhaHQ/I/3uZ2cq111fc="}]},"maintainers":[{"name":"trenskow","email":"trenskow@me.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/donot-transform-pug-1.0.5.tgz_1465205911909_0.11934028496034443"},"directories":{},"deprecated":"This package is no longer actively maintained."},"1.1.0":{"name":"@donotjs/donot-transform-pug","version":"1.1.0","description":"pug template support for donot.","author":{"name":"Kristian Trenskow","email":"trenskow@me.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/donotjs/donot-transform-pug.git"},"dependencies":{"@donotjs/donot-transform":"^1.0.5","merge":"^1.2.0","pug":"^2.0.0-beta2"},"devDependencies":{"chai":"^3.0.0","chai-as-promised":"^5.3.0","mocha":"^2.2.5"},"scripts":{"test":"mocha test/*"},"license":"MIT","gitHead":"6b7c12ee160006e52ea58cef7282f22850b489e5","bugs":{"url":"https://github.com/donotjs/donot-transform-pug/issues"},"homepage":"https://github.com/donotjs/donot-transform-pug#readme","_id":"@donotjs/donot-transform-pug@1.1.0","_shasum":"180af838698c62fb5c4673ed0264166ffdb9abb9","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.12.0","_npmUser":{"name":"trenskow","email":"trenskow@me.com"},"dist":{"shasum":"180af838698c62fb5c4673ed0264166ffdb9abb9","tarball":"https://registry.npmjs.org/@donotjs/donot-transform-pug/-/donot-transform-pug-1.1.0.tgz","integrity":"sha512-6qyazQCPXPQoE3mwruR9VVvflnDu+Nf8ieD769osfbFNtI6Sb0wT0y84vAjV0/W0XM6Jka/1xQ0D3RK/ATcBeg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5zLTziKtJtLxRBKN4qpatO9PvR4Ztcy1FkXBGDAaxgAiEA+QOJdgBdBscKx3L4emCkaT50d7rzqpgTYUr2P1czYy4="}]},"maintainers":[{"name":"trenskow","email":"trenskow@me.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/donot-transform-pug-1.1.0.tgz_1472576868124_0.13222427759319544"},"directories":{},"deprecated":"This package is no longer actively maintained."}},"readme":"donot-transform-pug\n====================\n\n[![Build Status](https://travis-ci.org/donotjs/donot-transform-pug.svg?branch=master)](https://travis-ci.org/donotjs/donot-transform-pug)\n\n[pug](http://npmjs.org/packages/pug) compiler and renderer for [donot](http://github.com/donotjs/donot).\n\n# Usage\n\nUsing the pug donot transform plug-in is pretty easy.\n\n\tvar http = require('http'),\n\t    donot = require('donot'),\n\t    PugTransform = require('donot-transform-pug');\n\n\tvar server = http.createServer(donot(__dirname + '/public', {\n\t\ttransforms: [ new PugTransform({\n\t\t\t// Options\n\t\t}) ]\n\t}));\n\n\tserver.listen(8000);\n\nNow `.pug` files in the `/public` folder will automatically be compiled, rendered and served as `.html` files.\n\n# Locals\n\nProviding locals for pug renderings is possible using the `renderCallback` option.\n\nAn example on how to use this below (here with Express).\n\n    var express = require('express'),\n\t    donot = require('donot'),\n\t    PugTransform = require('donot-transform-pug');\n\n\tvar app = express();\n\n\tapp.get('/index.html', function(req, res, next) {\n\t\treq.options = {\n\t\t\t// pug locals\n\t\t};\n\t\tnext();\n\t});\n\n\tapp.use(donot(__dirname + '/public', {\n\t\ttransforms: [ new PugTransform({\n\t\t\trenderCallback: function(req) {\n\t\t\t\treturn req.options;\n\t\t\t}\n\t\t}) ]\n\t}));\n\nIn the above example the `renderCallback` is called whenever pug is rendering a template. The `app.get('/index.html'...` route sets the `req.options` - which is then returned for pug to use in the callback.\n\n# License\n\nMIT\n","maintainers":[{"email":"trenskow@icloud.com","name":"trenskow_deprecated"}],"time":{"modified":"2022-06-12T17:14:04.949Z","created":"2016-06-04T10:21:16.305Z","1.0.0":"2016-06-04T10:21:16.305Z","1.0.1":"2016-06-05T09:17:46.009Z","1.0.3":"2016-06-05T16:32:37.342Z","1.0.4":"2016-06-06T09:33:28.375Z","1.0.5":"2016-06-06T09:38:33.596Z","1.1.0":"2016-08-30T17:07:50.006Z"},"homepage":"https://github.com/donotjs/donot-transform-pug#readme","repository":{"type":"git","url":"git+https://github.com/donotjs/donot-transform-pug.git"},"author":{"name":"Kristian Trenskow","email":"trenskow@me.com"},"bugs":{"url":"https://github.com/donotjs/donot-transform-pug/issues"},"license":"MIT","readmeFilename":"README.md"}