{"_id":"koa-art-template","_rev":"9-5dc5e52d16994a1674b088f02ff1a836","name":"koa-art-template","dist-tags":{"latest":"1.1.1"},"versions":{"0.0.1":{"name":"koa-art-template","version":"0.0.1","keywords":["koa","render","view","art-template"],"author":{"name":"aui"},"license":"MIT","_id":"koa-art-template@0.0.1","maintainers":[{"name":"aui","email":"1987.tangbin@gmail.com"}],"homepage":"https://github.com/aui/koa-art-template#readme","bugs":{"url":"https://github.com/aui/koa-art-template/issues"},"dist":{"shasum":"649ff9d70eb9b9f0b829d873319d7b7855e25ef9","tarball":"https://registry.npmjs.org/koa-art-template/-/koa-art-template-0.0.1.tgz","integrity":"sha512-xXeIz4cPrHkdMjrkhKLcFu6jNaOg/aRbSm6dDjiejIHE/K8RspYEkXqABN93Dq16saVTRrrwq1N/gVzcUoWfMQ==","signatures":[{"sig":"MEUCIQC4uEj/TuGSfvchCsN7b1AVDyWc+eJ84ObYcoK0lxihTAIgREnU4kE3CjWbojPu0iST3bzP8A2CFkLZaWPTZLxxQ7k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","_from":".","engine":{"node":">=7.6.0"},"_shasum":"649ff9d70eb9b9f0b829d873319d7b7855e25ef9","gitHead":"b4206ac794fd114637112cf120f307f597ef75d8","scripts":{"test":"make test"},"_npmUser":{"name":"aui","email":"1987.tangbin@gmail.com"},"repository":{"url":"git+https://github.com/aui/koa-art-template.git","type":"git"},"_npmVersion":"4.1.2","description":"art-template render middleware for koa","directories":{},"_nodeVersion":"7.5.0","dependencies":{"debug":"^2.6.1"},"devDependencies":{"koa":"^2.0.1","mocha":"^3.2.0","should":"^11.2.0","supertest":"^3.0.0"},"peerDependencies":{"art-template":">=4.0.0-beta7"},"_npmOperationalInternal":{"tmp":"tmp/koa-art-template-0.0.1.tgz_1492320330919_0.42272246931679547","host":"packages-12-west.internal.npmjs.com"}},"0.0.2":{"name":"koa-art-template","version":"0.0.2","keywords":["koa","render","view","art-template"],"author":{"name":"aui"},"license":"MIT","_id":"koa-art-template@0.0.2","maintainers":[{"name":"aui","email":"1987.tangbin@gmail.com"}],"homepage":"https://github.com/aui/koa-art-template#readme","bugs":{"url":"https://github.com/aui/koa-art-template/issues"},"dist":{"shasum":"5cc8c92efcfe6dddfd4a784289f102322afa74f2","tarball":"https://registry.npmjs.org/koa-art-template/-/koa-art-template-0.0.2.tgz","integrity":"sha512-jrcfDwPFp9Q232yg1is34s+PkPLlx4MamEDZTBFwSI362r5mclRNZ4aV9iV/ww7ZnkDEm4RExgWCT83RjaHUVQ==","signatures":[{"sig":"MEUCIQC7VuCdxJzev47MvI0YNOToPzUBWUupD6FBJZQkY9DmogIgLsVZh6Izwg+8GrsVCM4Mrwa6k+NkbbPWelv1yc+ZcXE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","_from":".","engine":{"node":">=7.6.0"},"_shasum":"5cc8c92efcfe6dddfd4a784289f102322afa74f2","gitHead":"694c527506e9580ee46e538cbba188f9ebfb537d","scripts":{"test":"make test","example":"node --harmony example/app.js"},"_npmUser":{"name":"aui","email":"1987.tangbin@gmail.com"},"repository":{"url":"git+https://github.com/aui/koa-art-template.git","type":"git"},"_npmVersion":"4.2.0","description":"art-template render middleware for koa","directories":{},"_nodeVersion":"7.9.0","dependencies":{"debug":"^2.6.1"},"devDependencies":{"koa":"^2.0.1","mocha":"^3.2.0","should":"^11.2.0","supertest":"^3.0.0"},"peerDependencies":{"art-template":">=4.0.0-beta8"},"_npmOperationalInternal":{"tmp":"tmp/koa-art-template-0.0.2.tgz_1492327898703_0.7656192756257951","host":"packages-12-west.internal.npmjs.com"}},"1.0.0":{"name":"koa-art-template","version":"1.0.0","keywords":["koa","render","view","art-template"],"author":{"name":"aui"},"license":"MIT","_id":"koa-art-template@1.0.0","maintainers":[{"name":"aui","email":"1987.tangbin@gmail.com"}],"homepage":"https://github.com/aui/koa-art-template#readme","bugs":{"url":"https://github.com/aui/koa-art-template/issues"},"dist":{"shasum":"669df090ff32980f6dc8576a866f32f76b2b47a2","tarball":"https://registry.npmjs.org/koa-art-template/-/koa-art-template-1.0.0.tgz","integrity":"sha512-0JSGbrny/GDAhi6ltxMkwSyndm8P2P5E7iW+IFBLQH8M5e2ZTWAkx8plRa9RMr6PXqjO/kD1SYf5vRICuV7aSA==","signatures":[{"sig":"MEQCIBs8u8YH92RUTkDrbw+n1fQnQ+7L65KrrgLwsvRXaYSqAiAZZXv/lTYbLTB2EUzLF6wy5NcuSeHgV6RDTqcNZyeBLg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","_from":".","engine":{"node":">= 7.6.0"},"_shasum":"669df090ff32980f6dc8576a866f32f76b2b47a2","gitHead":"d476f6e37679951c3382b6efe6b85dd1d41d3333","scripts":{"test":"make test","example":"node --harmony example/app.js"},"_npmUser":{"name":"aui","email":"1987.tangbin@gmail.com"},"repository":{"url":"git+https://github.com/aui/koa-art-template.git","type":"git"},"_npmVersion":"4.2.0","description":"art-template render middleware for koa","directories":{},"_nodeVersion":"7.9.0","dependencies":{"debug":"^2.6.1"},"devDependencies":{"koa":"^2.0.1","mocha":"^3.2.0","should":"^11.2.0","supertest":"^3.0.0"},"peerDependencies":{"art-template":">=4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/koa-art-template-1.0.0.tgz_1492525693456_0.3300801033619791","host":"packages-12-west.internal.npmjs.com"}},"1.1.0":{"name":"koa-art-template","version":"1.1.0","keywords":["koa","render","view","art-template"],"author":{"name":"aui"},"license":"MIT","_id":"koa-art-template@1.1.0","maintainers":[{"name":"aui","email":"1987.tangbin@gmail.com"}],"homepage":"https://github.com/aui/koa-art-template#readme","bugs":{"url":"https://github.com/aui/koa-art-template/issues"},"dist":{"shasum":"be9fc49ff3686b7545861b5975df549bc6e58878","tarball":"https://registry.npmjs.org/koa-art-template/-/koa-art-template-1.1.0.tgz","integrity":"sha512-b2bQGv14mI6bKVYJQsJ8qy1ykIC/zVIP/rQKqbub1xKKd4zR0A8sjAfaTZGuNw/SAKLukcttJz5/7aSPxTKF3w==","signatures":[{"sig":"MEUCIDZi26GZD9XbV05bGcljd1Btswv0+ftbyWTBYU8b5kOIAiEAtnIW3T4thWsOOvMwTcjiNsjeAAzKEAaVrxPSZxsfvYg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","_from":".","_shasum":"be9fc49ff3686b7545861b5975df549bc6e58878","engines":{"node":">= 7.6.0"},"gitHead":"e2a17a2222795927fbd9386c9a919f0f4e86d823","scripts":{"test":"make test","example":"node --harmony example/app.js"},"_npmUser":{"name":"aui","email":"1987.tangbin@gmail.com"},"repository":{"url":"git+https://github.com/aui/koa-art-template.git","type":"git"},"_npmVersion":"4.2.0","description":"art-template render middleware for koa","directories":{},"_nodeVersion":"7.9.0","dependencies":{"debug":"^2.6.1"},"devDependencies":{"koa":"^2.0.1","mocha":"^3.2.0","should":"^11.2.0","supertest":"^3.0.0"},"peerDependencies":{"art-template":">=4.3.0"},"_npmOperationalInternal":{"tmp":"tmp/koa-art-template-1.1.0.tgz_1492696469080_0.2592794925440103","host":"packages-18-east.internal.npmjs.com"}},"1.1.1":{"name":"koa-art-template","version":"1.1.1","keywords":["koa","render","view","art-template"],"author":{"name":"aui"},"license":"MIT","_id":"koa-art-template@1.1.1","maintainers":[{"name":"aui","email":"1987.tangbin@gmail.com"}],"homepage":"https://github.com/aui/koa-art-template#readme","bugs":{"url":"https://github.com/aui/koa-art-template/issues"},"dist":{"shasum":"69d0cd93154299f0de11704f2b5027ec07b040cf","tarball":"https://registry.npmjs.org/koa-art-template/-/koa-art-template-1.1.1.tgz","integrity":"sha512-Dgt+D4nU3p8/7ykwCCdnpKUq/rrJUVkoYKUoTHoApCL4G1Qku1xwuNXMYfHjHHk/RnqS+CwxMuNdBlDOyXM3tQ==","signatures":[{"sig":"MEUCIB0o9EBV555q68t6hEw6KpbGvgxcgLg6lJ7OijM34HqjAiEA+8e9RXgq9Sazr2AIP59qqjQ+a61Pp6pJF5RNkzux/pU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"src/index.js","engines":{"node":">= 7.6.0"},"gitHead":"3e877a95b8de9ffe88c393a40805112fc915286d","scripts":{"test":"make test","example":"node --harmony example/app.js"},"_npmUser":{"name":"aui","email":"1987.tangbin@gmail.com"},"repository":{"url":"git+https://github.com/aui/koa-art-template.git","type":"git"},"_npmVersion":"5.0.3","description":"art-template render middleware for koa","directories":{},"_nodeVersion":"8.1.0","dependencies":{"debug":"^2.6.1"},"devDependencies":{"koa":"^2.0.1","mocha":"^3.2.0","should":"^11.2.0","supertest":"^3.0.0"},"peerDependencies":{"art-template":">=4.11.0"},"_npmOperationalInternal":{"tmp":"tmp/koa-art-template-1.1.1.tgz_1497347089956_0.34430101583711803","host":"s3://npm-registry-packages"}}},"time":{"created":"2017-04-16T05:25:31.218Z","modified":"2024-12-01T14:13:38.513Z","0.0.1":"2017-04-16T05:25:31.218Z","0.0.2":"2017-04-16T07:31:38.998Z","1.0.0":"2017-04-18T14:28:13.695Z","1.1.0":"2017-04-20T13:54:30.903Z","1.1.1":"2017-06-13T09:44:50.069Z"},"bugs":{"url":"https://github.com/aui/koa-art-template/issues"},"author":{"name":"aui"},"license":"MIT","homepage":"https://github.com/aui/koa-art-template#readme","keywords":["koa","render","view","art-template"],"repository":{"url":"git+https://github.com/aui/koa-art-template.git","type":"git"},"description":"art-template render middleware for koa","maintainers":[{"email":"goofychris69@gmail.com","name":"daughtrymom"}],"readme":"# koa-art-template\n\n[![NPM Version](https://img.shields.io/npm/v/koa-art-template.svg)](https://npmjs.org/package/koa-art-template)\n[![Node.js Version](https://img.shields.io/node/v/koa-art-template.svg)](http://nodejs.org/download/)\n\nKoa art-template view render middleware. support all feature of [art-template](https://github.com/aui/art-template).\n\n## Install\n\n```shell\nnpm install --save art-template\nnpm install --save koa-art-template\n```\n\n## Usage\n\n### Example\n\n```js\nconst Koa = require('koa');\nconst render = require('koa-art-template');\n\nconst app = new Koa();\nrender(app, {\n  root: path.join(__dirname, 'view'),\n  extname: '.art',\n  debug: process.env.NODE_ENV !== 'production'\n});\n\napp.use(async function (ctx) {\n  await ctx.render('user');\n});\n\napp.listen(8080);\n```\n\nOr you can checkout the [example](https://github.com/aui/koa-art-template/tree/master/example).\n\n## Options\n\nSupports [art-template options](https://github.com/aui/art-template#Options).\n\n## State\n\nSupport [`ctx.state` in koa](https://github.com/koajs/koa/blob/master/docs/api/context.md#ctxstate).","readmeFilename":"README.md"}