{"id":24632679,"url":"https://github.com/pirxpilot/connect-renderer","last_synced_at":"2026-02-08T20:33:33.346Z","repository":{"id":270728106,"uuid":"911311057","full_name":"pirxpilot/connect-renderer","owner":"pirxpilot","description":"Connect compatible implementation of template renderer.","archived":false,"fork":false,"pushed_at":"2025-01-25T17:21:59.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-09T23:02:33.269Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pirxpilot.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-01-02T18:06:46.000Z","updated_at":"2025-01-25T17:22:02.000Z","dependencies_parsed_at":"2025-01-02T18:13:05.912Z","dependency_job_id":"ba8d2c57-e56e-4e49-8d02-94cb49d4368f","html_url":"https://github.com/pirxpilot/connect-renderer","commit_stats":null,"previous_names":["pirxpilot/connect-renderer"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pirxpilot/connect-renderer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fconnect-renderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fconnect-renderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fconnect-renderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fconnect-renderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pirxpilot","download_url":"https://codeload.github.com/pirxpilot/connect-renderer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pirxpilot%2Fconnect-renderer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261841950,"owners_count":23217912,"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":[],"created_at":"2025-01-25T08:12:33.025Z","updated_at":"2026-02-08T20:33:28.306Z","avatar_url":"https://github.com/pirxpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version][npm-image]][npm-url]\n[![Build Status][build-image]][build-url]\n[![Dependency Status][deps-image]][deps-url]\n\n# connect-renderer\n\n[Connect compatible][connect] implementation of template renderer. Inspired and based on `res.render()` implementation in [Express][express]\n\nTo be used where entire [express] functionality is not needed.\n\n## Install\n\n```sh\n$ npm install --save connect-renderer\n```\n\n## Usage\n\n```js\nconst connect = require('connect');\nconst app = connect();\nconst renderer = require('connect-renderer');\n\napp.use(renderer(VIEWS_DIR).engine('pug', {\n  compile: require('pug').compile,\n  options: {\n    // all options are passed to `compile` function\n    compileDebug: process.env.NODE_ENV !== 'production'\n  }\n}));\n\napp.use('/page', (req, res) =\u003e {\n  // req.app.locals and res.locals are merged with options passed to `render`\n  res.render('page', { title: 'Page'});\n})\n\n```\n\n## License\n\nMIT © [Damian Krzeminski](https://pirxpilot.me)\n\n[connect]: https://npmjs.org/package/connect\n[express]: https://npmjs.org/package/express\n\n[npm-image]: https://img.shields.io/npm/v/connect-renderer\n[npm-url]: https://npmjs.org/package/connect-renderer\n\n[build-url]: https://github.com/pirxpilot/connect-renderer/actions/workflows/check.yaml\n[build-image]: https://img.shields.io/github/actions/workflow/status/pirxpilot/connect-renderer/check.yaml?branch=main\n\n[deps-image]: https://img.shields.io/librariesio/release/npm/connect-renderer\n[deps-url]: https://libraries.io/npm/connect-renderer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Fconnect-renderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpirxpilot%2Fconnect-renderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpirxpilot%2Fconnect-renderer/lists"}