{"_id":"themeleon-swig","_rev":"1053469","name":"themeleon-swig","description":"Swig mixin for Themeleon.","dist-tags":{"latest":"1.0.3"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"},{"name":"pascalduez","email":"public@pascalduez.me"}],"time":{"modified":"2024-09-20T19:47:26.000Z","created":"2014-07-18T11:10:46.608Z","1.0.3":"2014-12-15T18:16:21.141Z","1.0.2":"2014-08-22T12:44:26.940Z","1.0.1":"2014-08-13T21:49:38.794Z","1.0.0":"2014-08-13T21:48:44.824Z","0.2.1":"2014-07-19T10:02:51.925Z","0.2.0":"2014-07-19T09:52:07.936Z","0.1.0":"2014-07-18T11:10:46.608Z"},"users":{},"author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"repository":{"type":"git","url":"https://github.com/themeleon/themeleon-swig.git"},"versions":{"1.0.3":{"name":"themeleon-swig","version":"1.0.3","description":"Swig mixin for Themeleon.","license":{"type":"Unlicense","url":"http://unlicense.org/"},"author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"contributors":[],"homepage":"https://github.com/themeleon/themeleon-swig","bugs":{"url":"https://github.com/themeleon/themeleon-swig/issues"},"repository":{"type":"git","url":"https://github.com/themeleon/themeleon-swig.git"},"dependencies":{"ap":"0.*","q":"1.*","swig":"1.*","themeleon":"1.*"},"devDependencies":{"eslint":"0.*"},"scripts":{"lint":"eslint *.js","test":"$npm_package_scripts_lint"},"gitHead":"925f939467d27cfadec4c0cdebc16c2cec4017d9","_id":"themeleon-swig@1.0.3","_shasum":"2d6bd012e756e942e78fd9de00636d9fcb7115cc","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.10.29","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"},{"name":"pascalduez","email":"public@pascalduez.me"}],"dist":{"shasum":"2d6bd012e756e942e78fd9de00636d9fcb7115cc","tarball":"http://registry-npm.ywwl.com/themeleon-swig/download/themeleon-swig-1.0.3.tgz","integrity":"sha512-dY2ZZKnPskeUKpvpsBkC1jMVhh1w0I8x265cvgN9X7kn5OcJTnJAm/1gqKe/KYXoDloeWb5kOOktgRy3hr6ZWg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGCzzQpzD5RWVAkQSrD8zU0dOaCKJa5fIL20JwthLK77AiBQUuVloyWBaOPG/dIcu/kaYbjwwjhd6U9mtUIvTlmtiw=="}],"size":2113,"noattachment":false,"key":"/themeleon-swig/-/themeleon-swig-1.0.3.tgz"},"deprecated":"This is native with Themeleon 3.0","directories":{},"publish_time":1418667381141,"_cnpm_publish_time":1418667381141},"1.0.2":{"name":"themeleon-swig","version":"1.0.2","description":"Swig mixin for Themeleon.","license":{"type":"Unlicense","url":"http://unlicense.org/"},"contributors":[{"name":"Valérian Galliat","url":"http://val.codejam.info/"}],"homepage":"https://github.com/themeleon/themeleon-swig","bugs":{"url":"https://github.com/themeleon/themeleon-swig/issues"},"repository":{"type":"git","url":"https://github.com/themeleon/themeleon-swig.git"},"dependencies":{"ap":"0.*","q":"1.*","swig":"1.*","themeleon":"1.*"},"devDependencies":{"eslint":"0.*"},"scripts":{"lint":"eslint *.js","test":"$npm_package_scripts_lint"},"gitHead":"612d2aeaf26869eae0b4d0ab9a535a3600b0edf4","_id":"themeleon-swig@1.0.2","_shasum":"c80557c8e547755a43cb4ebda4bea31b80652869","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"c80557c8e547755a43cb4ebda4bea31b80652869","tarball":"http://registry-npm.ywwl.com/themeleon-swig/download/themeleon-swig-1.0.2.tgz","integrity":"sha512-n+sqo9IcM76xNMZyyk3H2Dm8AUYBkJaIAwJM6110Y7jYnGVjEY2OW4z2rjX2EBvwde3D2V90EphJD/y+NsTj7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuZG0CRs1QR6kQlw9INEma7pRD14THbXgo6CsUSWWgVQIhAMd5hJgN3FrbmH0siotTx9PvoTyUAKYd8SOLfrF9WRhS"}],"size":1804,"noattachment":false,"key":"/themeleon-swig/-/themeleon-swig-1.0.2.tgz"},"deprecated":"This is native with Themeleon 3.0","directories":{},"publish_time":1408711466940,"_cnpm_publish_time":1408711466940},"1.0.1":{"name":"themeleon-swig","version":"1.0.1","description":"Swig mixin for Themeleon.","license":"Unlicense","author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"contributors":[],"homepage":"https://github.com/themeleon/themeleon-swig","bugs":{"url":"https://github.com/themeleon/themeleon-swig/issues"},"repository":{"type":"git","url":"https://github.com/themeleon/themeleon-swig.git"},"dependencies":{"ap":"0.*","q":"1.*","swig":"1.*","themeleon":"1.*"},"devDependencies":{"eslint":"0.*"},"scripts":{"lint":"eslint *.js","test":"$npm_package_scripts_lint"},"gitHead":"4c83efa17103129b6126a9d4bae3bc1123c29c02","_id":"themeleon-swig@1.0.1","_shasum":"9c3daeeb462a5147d7f03eac13adc585dfb1f9ae","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"9c3daeeb462a5147d7f03eac13adc585dfb1f9ae","tarball":"http://registry-npm.ywwl.com/themeleon-swig/download/themeleon-swig-1.0.1.tgz","integrity":"sha512-Fnxpnq2YQt9gcL/7JMV7PvvVWViixSECYvAXji1U3rQOIRy2bugHvdYFLWHbqfd8sC2PmRnVvCXKi7/aimgPtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcJWaOgng7V5uh2AfnHRrI44Cho7+9xSbol9sGgNHBLgIgP8INfAwcG8Qu9PgLUb0bk8aiBdo6Kf9p3ZrLNgVyjhg="}],"size":1807,"noattachment":false,"key":"/themeleon-swig/-/themeleon-swig-1.0.1.tgz"},"deprecated":"This is native with Themeleon 3.0","directories":{},"publish_time":1407966578794,"_cnpm_publish_time":1407966578794},"1.0.0":{"name":"themeleon-swig","version":"1.0.0","description":"Swig mixin for Themeleon.","license":"Unlicense","author":{"name":"Valérian Galliat","url":"http://val.codejam.info/"},"contributors":[],"homepage":"https://github.com/themeleon/themeleon-swig","bugs":{"url":"https://github.com/themeleon/themeleon-swig/issues"},"repository":{"type":"git","url":"https://github.com/themeleon/themeleon-swig.git"},"dependencies":{"ap":"0.*","q":"1.*","swig":"1.*","themeleon":"1.*"},"devDependencies":{"eslint":"0.*"},"scripts":{"lint":"eslint *.js","test":"$npm_package_scripts_lint"},"gitHead":"63ec17bd8ca3f67f3110a3e53bfb1ab4f0fdb360","_id":"themeleon-swig@1.0.0","_shasum":"dec257dffc9e474cae0778b18da8840e2e0e03d8","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"dec257dffc9e474cae0778b18da8840e2e0e03d8","tarball":"http://registry-npm.ywwl.com/themeleon-swig/download/themeleon-swig-1.0.0.tgz","integrity":"sha512-T8qHI3hpWLoYbB6tDZopl4xUCqH34KPzQMCDPai3UnyBryEQEsOGJFmkA2q5WBIKJ4+A2r5I87Vv3X1GVIg3Cg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/tKTUBiEJ8EHMg1Z2XWqD7dn/vfVR+3bSO1DACXqB0QIhAPAZDuHdan4rkwYoXVXxBymNCrtqQoZZgZ5a2+ge2KAv"}],"size":1812,"noattachment":false,"key":"/themeleon-swig/-/themeleon-swig-1.0.0.tgz"},"deprecated":"This is native with Themeleon 3.0","directories":{},"publish_time":1407966524824,"_cnpm_publish_time":1407966524824},"0.2.1":{"name":"themeleon-swig","version":"0.2.1","repository":{"type":"git","url":"https://github.com/valeriangalliat/themeleon-swig.git"},"scripts":{"test":"jshint src"},"dependencies":{"ap":"0.*","q":"1.*","swig":"1.*","themeleon":"0.*"},"devDependencies":{"jshint":"2.*"},"gitHead":"df481be1b72e97b4df6d6e615ce4dc7cb0ea9195","bugs":{"url":"https://github.com/valeriangalliat/themeleon-swig/issues"},"homepage":"https://github.com/valeriangalliat/themeleon-swig","_id":"themeleon-swig@0.2.1","_shasum":"c9916db79efc0a2d12713a811ace77d6d72bce1b","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"c9916db79efc0a2d12713a811ace77d6d72bce1b","tarball":"http://registry-npm.ywwl.com/themeleon-swig/download/themeleon-swig-0.2.1.tgz","integrity":"sha512-qx9g0K7k1rXgjSjaXpJ4XKS/T0pA6ddK7H5OahlUdjQWYYm9D6u6I8J9N2zDSAzAc7B9q2w5mgHJOwxY+2sUdg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEK5tJi5BRYg5JCqoJoaH9wCBMFSfypudV/4zrG0YPdoAiEAwDc3MakcefVutqFAGLFLuKdQngCDDl+NJMOrX3jfTPE="}],"size":653,"noattachment":false,"key":"/themeleon-swig/-/themeleon-swig-0.2.1.tgz"},"deprecated":"This is native with Themeleon 3.0","directories":{},"publish_time":1405764171925,"_cnpm_publish_time":1405764171925},"0.2.0":{"name":"themeleon-swig","version":"0.2.0","repository":{"type":"git","url":"https://github.com/valeriangalliat/themeleon-swig.git"},"scripts":{"test":"jshint src"},"dependencies":{"ap":"0.*","q":"1.*","swig":"1.*","themeleon":"0.*"},"devDependencies":{"jshint":"2.*"},"gitHead":"da296c25b7d345d4895e404b3116dcbc4586c169","bugs":{"url":"https://github.com/valeriangalliat/themeleon-swig/issues"},"homepage":"https://github.com/valeriangalliat/themeleon-swig","_id":"themeleon-swig@0.2.0","_shasum":"22b8d2b583d62b56936f2928e2add1f829a77a5a","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"22b8d2b583d62b56936f2928e2add1f829a77a5a","tarball":"http://registry-npm.ywwl.com/themeleon-swig/download/themeleon-swig-0.2.0.tgz","integrity":"sha512-dn/nzGEObqOQ8kd0Lq/fNoBsAQwAKQubSWGNdnW0quHlq15yi6q8vc2uyocyibvJvKxK0BQvcFUjdGkH0uNzww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4IxPxlSIfHQFFRkDbhvY3DIOyvkNmEZ8e+/IUGC7nMAiAVJ5XITOG8Qm80NxU3OPNOiVbNjBpcYGtImU4n1UyPnw=="}],"size":650,"noattachment":false,"key":"/themeleon-swig/-/themeleon-swig-0.2.0.tgz"},"deprecated":"This is native with Themeleon 3.0","directories":{},"publish_time":1405763527936,"_cnpm_publish_time":1405763527936},"0.1.0":{"name":"themeleon-swig","version":"0.1.0","repository":{"type":"git","url":"https://github.com/valeriangalliat/themeleon-swig.git"},"scripts":{"test":"jshint src"},"dependencies":{"ap":"0.*","q":"1.*","swig":"1.*","themeleon":"0.*"},"devDependencies":{"jshint":"2.*"},"gitHead":"d8cd14e10fb76f218e45c0b6b122b338eb7ba5d0","bugs":{"url":"https://github.com/valeriangalliat/themeleon-swig/issues"},"homepage":"https://github.com/valeriangalliat/themeleon-swig","_id":"themeleon-swig@0.1.0","_shasum":"a48ba21a2cea0d64a19df2f3f1e35e1041db1704","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"valeriangalliat","email":"vava720@gmail.com"},"maintainers":[{"name":"valeriangalliat","email":"vava720@gmail.com"}],"dist":{"shasum":"a48ba21a2cea0d64a19df2f3f1e35e1041db1704","tarball":"http://registry-npm.ywwl.com/themeleon-swig/download/themeleon-swig-0.1.0.tgz","integrity":"sha512-u9HYHhP6T41fPZ3WEpize0xu+rkJrrWWYrxJOHHxRXoSRsMy/Zhv1dSPP6Mz11pINTeTcywEpklpsgM3fIykfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQClLEREKqn1a99zHOmEMLHctOhz1BNO29l+b/cmoavs0AIhAKpe/hD2J5QfFe/LT+QSHB6JPhAIOTosmx6+45mMLo/y"}],"size":553,"noattachment":false,"key":"/themeleon-swig/-/themeleon-swig-0.1.0.tgz"},"deprecated":"This is native with Themeleon 3.0","directories":{},"publish_time":1405681846608,"_cnpm_publish_time":1405681846608}},"readme":"Themeleon Swig\n==============\n\n> [Swig] mixin for [Themeleon].\n\n**Warning:** this repository/package is deprecated, template engines\nwill be handled by consolidate.js in Themeleon 3.0.\n\n[Swig]: https://paularmstrong.github.io/swig/\n[Themeleon]: https://github.com/themeleon/themeleon\n\nInstallation\n------------\n\nIn your `package.json`:\n\n```json\n{\n  \"dependencies\": {\n    \"themeleon\": \"1.*\",\n    \"themeleon-swig\": \"1.*\"\n  }\n}\n```\n\nUsage\n-----\n\n```js\nvar themeleon = require('themeleon')();\n\n// Use the Swig mixin\nthemeleon.use('swig');\n\n// Or inject your own instance\nthemeleon.use('swig', require('swig'));\n\nmodule.exports = themeleon(__dirname, function (t) {\n  // Compile a Swig view as `index.html` in destination directory\n  t.swig('views/index.html.swig', 'index.html');\n});\n```\n\n### Using Twig extras\n\n```js\n// Create a local Swig instance instead of altering the globale one\nvar swig = new (require('swig').Swig)();\n\nvar extras = require('swig-extras'); // Moar filters\nvar themeleon = require('themeleon')(); // No change here\n\n// Use some additional filters\nextras.useFilter(swig, 'nl2br');\nextras.useFilter(swig, 'split');\nextras.useFilter(swig, 'trim');\nextras.useFilter(swig, 'groupby');\n\n// Even add your own filters\nswig.setFilter('push', function (arr, val) {\n  return arr.push(val);\n});\n\n// Tell Themeleon to use your own Swig instance\nthemeleon.use('swig', swig);\n```\n","_attachments":{},"homepage":"https://github.com/themeleon/themeleon-swig","bugs":{"url":"https://github.com/themeleon/themeleon-swig/issues"},"license":{"type":"Unlicense","url":"http://unlicense.org/"}}