{"_id":"then-pug","_rev":"12-a2eee0a31b495797f6f002142502ed71","name":"then-pug","description":"An async, streaming version of the pug templating language","dist-tags":{"latest":"2.0.0"},"versions":{"0.0.0":{"name":"then-pug","version":"0.0.0","description":"Jade with async/streaming support via promises and generators","keywords":[],"dependencies":{"barrage":"~1.1.0","jade":"1.11.0","promise":"~7.0.3","regenerator":"~0.8.30","then-yield":"0.0.1","with":"~5.0.0"},"devDependencies":{"mocha":"*","should":"~3.1.2","uglify-js":"~2.4.12","coffee-script":"~1.7.1","jstransformer-cdata":"0.0.3","jstransformer-coffee-script":"0.0.2","jstransformer-less":"^1.0.0","jstransformer-marked":"0.0.1","jstransformer-stylus":"0.0.1","jstransformer-verbatim":"0.0.2","less":"~1.6.3","marked":"~0.3.1","stylus":"~0.42.2","gnode":"0.0.6","gethub":"~1.0.2"},"scripts":{"test":"node test/download-jade-tests && mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/then-jade.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"f58763207ee1c54ba00b237f496f5f8f5786392f","bugs":{"url":"https://github.com/then/then-jade/issues"},"homepage":"https://github.com/then/then-jade","_id":"then-pug@0.0.0","_shasum":"e9a1ec7727b9cf03cfaadc7eb48b39242856e7ef","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"dist":{"shasum":"e9a1ec7727b9cf03cfaadc7eb48b39242856e7ef","tarball":"https://registry.npmjs.org/then-pug/-/then-pug-0.0.0.tgz","integrity":"sha512-dNdLzz3sX2VKslUr080TWFMMUTixcDkIpS7mLgnUm6lb3we65n9B8dtZQZc4/RQb8hn1SftStPYzwf9lHNYOKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcyWVMuMA1a6gh3Me6508Uw0oVT9mX5TtUUkAe2KVrxAiEAjIYZhqdK4ed+uIkJqIylytdKT3J2HSpCtQiCsTkNXek="}]},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"}],"directories":{}},"1.0.0":{"name":"then-pug","description":"An async, streaming version of the pug templating language","version":"1.0.0","author":{"name":"Jérôme Wagner"},"license":"MIT","repository":{"type":"git","url":"git://github.com/pugjs/pug.git"},"main":"lib","dependencies":{"babel-template":"^6.22.0","babel-types":"^6.22.0","barrage":"^1.1.0","promise":"^7.1.1","pug-filters":"^2.1.1","pug-lexer":"^3.0.0","pug-linker":"^2.0.2","pug-load":"^2.0.5","pug-parser":"^2.0.2","pug-runtime":"^2.0.3","pug-strip-comments":"^1.0.2","then-yield":"0.0.1","babel-core":"^6.22.1","babel-generator":"^6.22.0","babel-plugin-transform-with":"^1.0.0","babylon":"^6.15.0","constantinople":"^3.0.1","doctypes":"^1.1.0","js-stringify":"^1.0.1","pug-attrs":"^2.0.2","pug-error":"^1.3.2","void-elements":"^2.0.1"},"devDependencies":{"jstransformer-cdata":"^1.0.0","jstransformer-coffee-script":"^1.0.0","jstransformer-less":"^2.1.0","jstransformer-markdown-it":"^1.0.0","jstransformer-stylus":"^1.0.0","jstransformer-uglify-js":"^1.1.1","jstransformer-verbatim":"^1.0.0","mkdirp":"^0.5.1","rimraf":"^2.2.8","uglify-js":"github:mishoo/UglifyJS2#1c15d0db456ce32f1b9b507aad97e5ee5c8285f7"},"browser":{"fs":false},"homepage":"https://pugjs.org","bugs":{"url":"https://github.com/pugjs/pug/issues"},"_id":"then-pug@1.0.0","scripts":{},"_shasum":"01689e70d90ea8d09c11f1617c53ecff9547db81","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"jeromew","email":"jerome.wagner@m4x.org"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"01689e70d90ea8d09c11f1617c53ecff9547db81","tarball":"https://registry.npmjs.org/then-pug/-/then-pug-1.0.0.tgz","integrity":"sha512-Kixj/ar5aVqSF6Ub7F/J7T4DTkDoFra6NrB+KlcBPB96bCA/mBdvxHSE9xYA41B37OxpTlSKBW3XBymeqJw+hA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBUWOHDoyPoBXEEvlWLHaC8GQ0YOg4ZF9JZCO+luwwygIgBk1dZ6lvI26DoD22UXOxRd7/iUTKJHgzai9sMHm20o4="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/then-pug-1.0.0.tgz_1487011298635_0.5776610223110765"},"directories":{}},"1.0.1":{"name":"then-pug","description":"An async, streaming version of the pug templating language","version":"1.0.1","author":{"name":"Jérôme Wagner"},"license":"MIT","repository":{"type":"git","url":"git://github.com/pugjs/pug.git"},"main":"lib","dependencies":{"babel-template":"^6.22.0","babel-types":"^6.22.0","barrage":"^1.1.0","promise":"^7.1.1","pug-filters":"^2.1.1","pug-lexer":"^3.0.0","pug-linker":"^2.0.2","pug-load":"^2.0.5","pug-parser":"^2.0.2","pug-runtime":"^2.0.3","pug-strip-comments":"^1.0.2","then-yield":"0.0.1","babel-core":"^6.22.1","babel-generator":"^6.22.0","babel-plugin-transform-with":"^1.0.0","babylon":"^6.15.0","constantinople":"^3.0.1","doctypes":"^1.1.0","js-stringify":"^1.0.1","pug-attrs":"^2.0.2","pug-error":"^1.3.2","void-elements":"^2.0.1"},"devDependencies":{"jstransformer-cdata":"^1.0.0","jstransformer-coffee-script":"^1.0.0","jstransformer-less":"^2.1.0","jstransformer-markdown-it":"^1.0.0","jstransformer-stylus":"^1.0.0","jstransformer-uglify-js":"^1.1.1","jstransformer-verbatim":"^1.0.0","mkdirp":"^0.5.1","rimraf":"^2.2.8","uglify-js":"github:mishoo/UglifyJS2#1c15d0db456ce32f1b9b507aad97e5ee5c8285f7"},"browser":{"fs":false},"homepage":"https://pugjs.org","bugs":{"url":"https://github.com/pugjs/pug/issues"},"_id":"then-pug@1.0.1","scripts":{},"_shasum":"2b3eb055b1174e5c55700c7b33e54262a9ad9a99","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"jeromew","email":"jerome.wagner@m4x.org"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"2b3eb055b1174e5c55700c7b33e54262a9ad9a99","tarball":"https://registry.npmjs.org/then-pug/-/then-pug-1.0.1.tgz","integrity":"sha512-Sccggten8D2nibk9dC05ZaHnOxeBT06xILFae9LHny9B4Sct+Z0UaXO2776+DOqdWGpQNa5bgqayEhCtRdRamQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoTIJmFgeHLSYRi1Fq+VjaeSuKyolIQNEbVuLEHn+RZwIhANvMNohB2kh0tvE7CthflLHe2yx5ExhvItsXNWIJNdsm"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/then-pug-1.0.1.tgz_1487019769525_0.7433557831682265"},"directories":{}},"1.0.2":{"name":"then-pug","description":"An async, streaming version of the pug templating language","version":"1.0.2","author":{"name":"Jérôme Wagner"},"license":"MIT","repository":{"type":"git","url":"git://github.com/pugjs/pug.git"},"main":"lib","dependencies":{"babel-template":"^6.22.0","babel-types":"^6.22.0","barrage":"^1.1.0","promise":"^7.1.1","pug-filters":"^2.1.1","pug-lexer":"^3.0.0","pug-linker":"^2.0.2","pug-load":"^2.0.5","pug-parser":"^2.0.2","pug-runtime":"^2.0.3","pug-strip-comments":"^1.0.2","then-yield":"0.0.1","babel-core":"^6.22.1","babel-generator":"^6.22.0","babel-plugin-transform-with":"^1.0.0","babylon":"^6.15.0","constantinople":"^3.0.1","doctypes":"^1.1.0","js-stringify":"^1.0.1","pug-attrs":"^2.0.2","pug-error":"^1.3.2","void-elements":"^2.0.1"},"devDependencies":{"jstransformer-cdata":"^1.0.0","jstransformer-coffee-script":"^1.0.0","jstransformer-less":"^2.1.0","jstransformer-markdown-it":"^1.0.0","jstransformer-stylus":"^1.0.0","jstransformer-uglify-js":"^1.1.1","jstransformer-verbatim":"^1.0.0","mkdirp":"^0.5.1","rimraf":"^2.2.8","uglify-js":"github:mishoo/UglifyJS2#1c15d0db456ce32f1b9b507aad97e5ee5c8285f7"},"browser":{"fs":false},"homepage":"https://pugjs.org","bugs":{"url":"https://github.com/pugjs/pug/issues"},"_id":"then-pug@1.0.2","scripts":{},"_shasum":"24ca5bc9983a196c4df18707b7edc875cb91b685","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"jeromew","email":"jerome.wagner@m4x.org"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"24ca5bc9983a196c4df18707b7edc875cb91b685","tarball":"https://registry.npmjs.org/then-pug/-/then-pug-1.0.2.tgz","integrity":"sha512-sF4nt8TzZTM3Qm7T5bgExTNETdBmpGlyb4PhMX3owzaftrG7jqzv0n1tX0OXFcS4aoK6hcYqD9jhQC6HlIe8mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDKRf0BJk6335gj2qI7rjhFofJGji59qldoLrLHwZJzIgIgZ9/fcI6iB8o/lT/UzfCfx+wsaq9CIBCpV78QPT04ka0="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/then-pug-1.0.2.tgz_1487021576069_0.9107044616248459"},"directories":{}},"1.0.3":{"name":"then-pug","description":"An async, streaming version of the pug templating language","version":"1.0.3","author":{"name":"Jérôme Wagner"},"license":"MIT","repository":{"type":"git","url":"git://github.com/pugjs/pug.git"},"main":"lib","dependencies":{"babel-template":"^6.22.0","babel-types":"^6.22.0","barrage":"^1.1.0","promise":"^7.1.1","pug-filters":"^2.1.1","pug-lexer":"^3.0.0","pug-linker":"^2.0.2","pug-load":"^2.0.5","pug-parser":"^2.0.2","pug-runtime":"^2.0.3","pug-strip-comments":"^1.0.2","then-yield":"0.0.1","babel-core":"^6.22.1","babel-generator":"^6.22.0","babel-plugin-transform-with":"^1.0.0","babylon":"^6.15.0","constantinople":"^3.0.1","doctypes":"^1.1.0","js-stringify":"^1.0.1","pug-attrs":"^2.0.2","pug-error":"^1.3.2","void-elements":"^2.0.1"},"devDependencies":{"jstransformer-cdata":"^1.0.0","jstransformer-coffee-script":"^1.0.0","jstransformer-less":"^2.1.0","jstransformer-markdown-it":"^1.0.0","jstransformer-stylus":"^1.0.0","jstransformer-uglify-js":"^1.1.1","jstransformer-verbatim":"^1.0.0","mkdirp":"^0.5.1","rimraf":"^2.2.8","uglify-js":"github:mishoo/UglifyJS2#1c15d0db456ce32f1b9b507aad97e5ee5c8285f7"},"browser":{"fs":false},"homepage":"https://pugjs.org","bugs":{"url":"https://github.com/pugjs/pug/issues"},"_id":"then-pug@1.0.3","scripts":{},"_shasum":"93b1f3a8173577f78e09ce97342479c4fbdb3f27","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"jeromew","email":"jerome.wagner@m4x.org"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"93b1f3a8173577f78e09ce97342479c4fbdb3f27","tarball":"https://registry.npmjs.org/then-pug/-/then-pug-1.0.3.tgz","integrity":"sha512-XOWLZRoQRPLwYXXYwPfxA9Hnf/bQ+PuZo82nQEy30x2LqNopiQ0Vi7VZWL/hM3RPMDF/+hZFQrb1wtYXkJ9ewA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDKON/jn7tl0yXFxx9jmjNoVgVg+lrCKiQx9ejMXP2lTAiArC73Xl0+FnmFcWTm1Z/o1K6bfoF9HwCBbUtDFZT5KIw=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/then-pug-1.0.3.tgz_1487032444656_0.5856231974903494"},"directories":{}},"1.0.4":{"name":"then-pug","description":"An async, streaming version of the pug templating language","version":"1.0.4","author":{"name":"Jérôme Wagner"},"license":"MIT","repository":{"type":"git","url":"git://github.com/pugjs/pug.git"},"main":"lib","dependencies":{"babel-template":"^6.22.0","babel-types":"^6.22.0","barrage":"^1.1.0","promise":"^7.1.1","pug-filters":"^2.1.1","pug-lexer":"^3.0.0","pug-linker":"^2.0.2","pug-load":"^2.0.5","pug-parser":"^2.0.2","pug-runtime":"^2.0.3","pug-strip-comments":"^1.0.2","then-yield":"0.0.1","babel-core":"^6.22.1","babel-generator":"^6.22.0","babel-plugin-transform-with":"^1.0.0","babylon":"^6.15.0","constantinople":"^3.0.1","doctypes":"^1.1.0","js-stringify":"^1.0.1","pug-attrs":"^2.0.2","pug-error":"^1.3.2","void-elements":"^2.0.1"},"devDependencies":{"jstransformer-cdata":"^1.0.0","jstransformer-coffee-script":"^1.0.0","jstransformer-less":"^2.1.0","jstransformer-markdown-it":"^1.0.0","jstransformer-stylus":"^1.0.0","jstransformer-uglify-js":"^1.1.1","jstransformer-verbatim":"^1.0.0","mkdirp":"^0.5.1","rimraf":"^2.2.8","uglify-js":"github:mishoo/UglifyJS2#1c15d0db456ce32f1b9b507aad97e5ee5c8285f7"},"browser":{"fs":false},"homepage":"https://pugjs.org","bugs":{"url":"https://github.com/pugjs/pug/issues"},"_id":"then-pug@1.0.4","scripts":{},"_shasum":"870fa794febb72f33f6b66cf9b1424cd700899fa","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"jeromew","email":"jerome.wagner@m4x.org"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"shasum":"870fa794febb72f33f6b66cf9b1424cd700899fa","tarball":"https://registry.npmjs.org/then-pug/-/then-pug-1.0.4.tgz","integrity":"sha512-x8DtgCjv+qjOmqZ72ZxgvfkfidtpNUL3kon9fA6cTmDX9VUykzMKDXnziItk4w1mP3viGpDR1nlzjJ7CJk7OjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBpHK2TSuB0bMzlDZzpUgSXgcB2hBzG4SxxT1aRGfqPDAiBH4wsDyirB3CytA602j+K0x7uSs8DkP4Jx/bKkY8jYSg=="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/then-pug-1.0.4.tgz_1487033029426_0.38134149042889476"},"directories":{}},"2.0.0":{"name":"then-pug","description":"An async, streaming version of the pug templating language","version":"2.0.0","author":{"name":"Jérôme Wagner"},"license":"MIT","repository":{"type":"git","url":"git://github.com/pugjs/pug.git"},"main":"lib","dependencies":{"barrage":"^1.1.0","promise":"^7.1.1","pug-filters":"^3.1.0","pug-lexer":"^4.0.0","pug-linker":"^3.0.5","pug-load":"^2.0.11","pug-parser":"^5.0.0","pug-runtime":"^2.0.4","pug-strip-comments":"^1.0.3","then-yield":"0.0.1","with":"^6.0.0","babel-core":"^6.26.3","babel-generator":"^6.26.1","babel-template":"^6.26.0","babel-types":"^6.26.0","babylon":"^6.18.0","constantinople":"^3.0.1","doctypes":"^1.1.0","js-stringify":"^1.0.1","pug-attrs":"^2.0.3","pug-error":"^1.3.2","void-elements":"^2.0.1"},"devDependencies":{"jstransformer-cdata":"^1.0.0","jstransformer-coffee-script":"^1.0.0","jstransformer-less":"^2.1.0","jstransformer-markdown-it":"^1.0.0","jstransformer-stylus":"^1.0.0","jstransformer-uglify-js":"^1.1.1","jstransformer-verbatim":"^1.0.0","mkdirp":"^0.5.1","rimraf":"^2.2.8","uglify-js":"github:mishoo/UglifyJS2#1c15d0db456ce32f1b9b507aad97e5ee5c8285f7"},"browser":{"fs":false},"homepage":"https://pugjs.org","bugs":{"url":"https://github.com/pugjs/pug/issues"},"_id":"then-pug@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"8.14.0","_npmUser":{"name":"jeromew","email":"jerome.wagner@m4x.org"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"jeromew","email":"jerome.wagner@m4x.org"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"dist":{"integrity":"sha512-5P4PSt7Ve/4KeQLBwG1ryIsIDpng18C46kfnym+0WKBBH/IxX1d8pvKop5UQkM8M9wsk0qHSOwQjrOFs3yKSYQ==","shasum":"cde42657b0343617230c0e73f8fd7afb90002da8","tarball":"https://registry.npmjs.org/then-pug/-/then-pug-2.0.0.tgz","fileCount":150,"unpackedSize":96216,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcm1moCRA9TVsSAnZWagAArcEQAKNTZ7AXFQaxRDQsOKTX\nWKtEBatPXfxmw/4ntta5W8TrazIxkTMmfv+QZo9ScjesTfFozxQgcRCfTmvU\nBBKZ0xBd8T8yxMqpdpghqN1pvj2FGal6FJVWXOoNLHzJ/Dnn18C6lGYXV+KR\n6keQZod3Q+BWar6/z6MWbsXt2HO/oTOvP8JFDD1+QcmxC6X88VbuEDutheHD\nn8kVSq0Bp0rjGTMH3d3zkI6rsR08YruzGSWl6Z2h853WVpi5xeG3F3p3ErDG\ntZtr/+t08N3ksvGHne9ik/g9GFRdRRr+/9SYjoApZgbV8vihQhIFRJSgDYL1\ntsLX2KTNmuOQsqCJWENSZvCSNUA8bIx8C4rosOzMBaKU1ccJRWx/Bl2xmL0G\ntjx7xh5ZLxuYSk+3tvmvTksdgxuy6KveTSVAC4dlRnXgJN0g3SNDEIyuJNcF\nv9wx4tuAB1XmqQ0/uWsYfye/iLJr+QuXpaWqBo7jHXOpM5gZw6T7ITFHgGTj\nEmLYGW+1I/Rd2SSao8VSFZJ5hPKs64+w7ebd5AjM+kF1Rry1pvlFfkRsOaAO\nDt7veXfpz14CF2pHNYPESmMXkcsj9+o7U0m9iP6ujJIRTQWxkCeT6/iC2dQ8\ndjfECY4J0MfEPTIOE0x7DQ0Mj5uA+pFanzIB98slgiTcyFbfDvBvhsaL9Ymt\n35bB\r\n=/T5K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFxOPGTGGamuPkV0ZrsIsgknvzqLLVvtnUOEVsKsHtsCAiA4BFL9NeGkjROyJ32CMQN34soLK33nP4notqNlZBJybw=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/then-pug_2.0.0_1553684904191_0.525272100643204"},"_hasShrinkwrap":false}},"readme":"# then-pug\n\n**WARNING**: This is a work-in-progress port of `then-jade` to `pug`. Expect it to break at any time until this warning is removed. The documentation is not up to date.\n\n\nJade template engine with async/streaming support via promises and generators.\n\nThe Jade template engine is a templating engine with a 2 stage process :\n * stage 1: synchronous compilation of a template, leading to a rendering function\n * stage 2: synchronous rendering of compiled template using user defined `locals`\n\n`then-jade` makes sure that the rendering stage of the process (stage 2) becomes asynchronous: \n * Generators and Promises can be used in the user defined `locals` and the rendering will be progressive, waiting asynchronously for the resolution of the promises\n * The rendered output is made available as a ReadableStream with back-pressure implemented, so the rendering will only be done as fast as the downstream WritableStream can handle it\n\nIt is not the goal of `then_jade` to modify the compilation phase of the process (stage 1). This means for example that extends & includes will continue to be loaded synchronously by jade.\n\nNote: `jade` was frozen and deprecated in version 1.11.0 because of trademark issues. It was replaced by `pug` which has a new code architecture. `then-jade` is currently frozen and creating a `then-pug` module is only a very low priority task for the maintainers.\n\n[![Build Status](https://travis-ci.org/pugjs/then-jade.png?branch=master)](https://travis-ci.org/pugjs/then-jade)\n[![Dependency Status](https://gemnasium.com/jadejs/then-jade.png)](https://gemnasium.com/pugjs/then-jade)\n[![NPM version](https://img.shields.io/npm/v/then-jade.svg)](https://www.npmjs.com/package/then-jade)\n\n## Installation\n\n    npm install then-jade\n\n## API\n\nBefore all examples, you will need:\n\n```js\nvar thenJade = require('then-jade');\n```\n\n### compile(str, options)\n\nCompiles a string containing a jade template into a rendering function.\n\n```js\nvar fn = thenJade.compile(str, options);\n```\n\nThe rendering function can be called as `fn(locals, callback)` where `locals` are the user defined variables or generator/promises that can be used in the template. `callback` is a node-style `callback(err, res)` that will be called with the rendered template once the rendering is finished or with an error if something went wrong.\n\nFor `options`, see the documentation for `compileStreaming`\n\n\n### compileStreaming(str, options)\n\nCompiles a string containing a jade template into a rendering function.\n\n```js\nvar fn = thenJade.compileStreaming(str, options);\n```\n\nThe rendering function can be called as `fn(locals)` where `locals` are the user defined variables or generator/promises that can be used in the template. The result of calling this function is a ReadableStream that will stream the rendered template.\n\n### render(str, options, callback)\n\n* Render the given `str` of jade.\n\nIf the function is called with an optional node-style `callback`, the callback\nwill be called with the result when the rendering is finished.\n\nOtherwise, the function will return a Promise that will be fulfilled when\nthe rendering is finished.\n\nOptions:\n  - `filename` filename required for `include` / `extends`\n\n### renderStreaming(str, options)\n\nRender the given `str` of jade\n\n`options`:\n  - `filename` filename required for `include` / `extends`\n\n`options` are used as `locals` at rendering time.\n\nThe result is a ReadableStream wrapping the asynchronous rendering of the template.\nThis stream can be piped into a WritableStream.\n\n### renderFile(path, options, callback)\n\nRender the given `path` file containing a jade.\nThe compilation of the file is synchronous and uses an internal in-memory cache\nto avoid re-compiling the same file twice.\nThe rendering is asynchronous.\n\nIf the function is called with an optional node-style `callback`, the callback\nwill be called with the result when the rendering is finished.\n\nOtherwise, the function will return a Promise that will be fulfilled when\nthe rendering is finished.\n\n`options` are used as `locals` at rendering time.\n\n### renderFileStreaming(path, options) \n\nRender the given `path` file containing a jade.\nThe compilation of the file is synchronous and uses an internal in-memory cache\nto avoid re-compiling the same file twice.\nThe rendering is asynchronous.\n\nThe result is a ReadableStream wrapping the asynchronous rendering of the template.\nThis stream can be piped into a WritableStream.\n\n`options` are used as `locals` at rendering time.\n\n## License\n\n  MIT\n","maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"jeromew","email":"jerome.wagner@m4x.org"},{"name":"timothygu","email":"timothygu99@gmail.com"}],"time":{"modified":"2022-06-27T06:03:12.808Z","created":"2015-12-12T01:10:52.288Z","0.0.0":"2015-12-12T01:10:52.288Z","1.0.0":"2017-02-13T18:41:40.575Z","1.0.1":"2017-02-13T21:02:51.374Z","1.0.2":"2017-02-13T21:32:56.634Z","1.0.3":"2017-02-14T00:34:05.298Z","1.0.4":"2017-02-14T00:43:50.067Z","2.0.0":"2019-03-27T11:08:24.341Z"},"homepage":"https://pugjs.org","repository":{"type":"git","url":"git://github.com/pugjs/pug.git"},"author":{"name":"Jérôme Wagner"},"bugs":{"url":"https://github.com/pugjs/pug/issues"},"license":"MIT","readmeFilename":"README.md"}