{"id":15282681,"url":"https://github.com/ladjs/koa-views-render","last_synced_at":"2025-04-12T23:08:07.848Z","repository":{"id":66193097,"uuid":"102979859","full_name":"ladjs/koa-views-render","owner":"ladjs","description":"Simple render(page, locals) middleware for Koa and Lad (uses koa-views)","archived":false,"fork":false,"pushed_at":"2023-06-09T01:08:30.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-12T23:08:04.062Z","etag":null,"topics":["consolidate","ejs","engine","koa","locals","middleware","nunjucks","pug","render","template","templating","view","views"],"latest_commit_sha":null,"homepage":"https://lad.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ladjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-09T19:28:59.000Z","updated_at":"2023-07-08T10:44:47.000Z","dependencies_parsed_at":"2024-06-19T00:05:37.598Z","dependency_job_id":"e71fd1de-28e3-47c2-b7d9-78d2b2ebead9","html_url":"https://github.com/ladjs/koa-views-render","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-views-render","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-views-render/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-views-render/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ladjs%2Fkoa-views-render/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ladjs","download_url":"https://codeload.github.com/ladjs/koa-views-render/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643004,"owners_count":21138355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["consolidate","ejs","engine","koa","locals","middleware","nunjucks","pug","render","template","templating","view","views"],"created_at":"2024-09-30T14:34:52.545Z","updated_at":"2025-04-12T23:08:07.827Z","avatar_url":"https://github.com/ladjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-views-render\n\n[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/ladjs/koa-views-render.svg)](\u003c\u003e)\n\n\u003e Simple `render(page, locals)` middleware for [Koa][] and [Lad][] (uses [koa-views][]).\n\n\n## Table of Contents\n\n* [Install](#install)\n* [Usage](#usage)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install koa-views-render\n```\n\n[yarn][]:\n\n```sh\nyarn add koa-views-render\n```\n\n\n## Usage\n\n\u003e This is a simple middleware that simply passes down to `ctx.render` the `page` and `locals` arguments you provide.\n\u003e\n\u003e For example `render(page,locals)` will get passed to `ctx.render(page,locals)`. See [koa-views][] for full reference.\n\n```js\nconst render = require('koa-views-render');\n\n// ...\n\napp.use(render('home'));\n```\n\n\u003e With optional `locals` object argument:\n\n```js\napp.use(render('about', { title: 'About Us' });\n```\n\n\n## Contributors\n\n| Name           | Website                    |\n| -------------- | -------------------------- |\n| **Nick Baugh** | \u003chttp://niftylettuce.com/\u003e |\n\n\n## License\n\n[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)\n\n\n##\n\n[npm]: https://www.npmjs.com/\n\n[yarn]: https://yarnpkg.com/\n\n[koa]: http://koajs.com\n\n[lad]: https://lad.js.org\n\n[koa-views]: https://github.com/ladjs/koa-views\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladjs%2Fkoa-views-render","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fladjs%2Fkoa-views-render","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fladjs%2Fkoa-views-render/lists"}