{"id":21541509,"url":"https://github.com/reshape/express","last_synced_at":"2025-03-17T22:50:51.395Z","repository":{"id":72842968,"uuid":"73517285","full_name":"reshape/express","owner":"reshape","description":"simple view engine config for express","archived":false,"fork":false,"pushed_at":"2018-01-04T23:07:44.000Z","size":79,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T08:28:36.346Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reshape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE.md","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":"2016-11-11T22:48:11.000Z","updated_at":"2016-11-11T23:01:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"484c07d6-8f23-450d-a9c2-a30bb1171718","html_url":"https://github.com/reshape/express","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fexpress","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fexpress/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fexpress/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reshape%2Fexpress/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reshape","download_url":"https://codeload.github.com/reshape/express/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244122507,"owners_count":20401439,"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":"2024-11-24T05:04:56.081Z","updated_at":"2025-03-17T22:50:51.389Z","avatar_url":"https://github.com/reshape.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reshape Express\n\n[![npm](https://img.shields.io/npm/v/reshape-express.svg?style=flat-square)](https://npmjs.com/package/reshape-express)\n[![tests](https://img.shields.io/travis/reshape/express.svg?style=flat-square)](https://travis-ci.org/reshape/express?branch=master)\n[![dependencies](https://img.shields.io/david/reshape/express.svg?style=flat-square)](https://david-dm.org/reshape/express)\n[![coverage](https://img.shields.io/coveralls/reshape/express.svg?style=flat-square)](https://coveralls.io/r/reshape/express?branch=master)\n\nAn express view engine for reshape\n\n\u003e **Note:** This project is in early development, and versioning is a little different. [Read this](http://markup.im/#q4_cRZ1Q) for more details.\n\n### Installation\n\n`npm install reshape-express -S`\n\n\u003e **Note:** This project is compatible with node v6+ only\n\n### Usage\n\nRequire it and run the exported function, passing it your express `app` and your reshape options, plugins, etc. It will match `.html` files by default, you can pass an alternate file type as the third argument if you want.\n\nThen set up your views directory and view engine, and pass in any locals when you run `res.render`. That's it! Example below:\n\n```js\nconst express = require('express')\nconst reshape = require('reshape-express')\nconst standard = require('reshape-standard')\n\nconst app = express()\nreshape(app, standard({ template: true }), 'html')\n\napp.set('views', './views')\napp.set('view engine', 'html')\n\napp.get('/', (req, res) =\u003e {\n  res.render('index.html', { foo: 'bar' })\n})\n\napp.listen(3000)\n```\n\nAnd in `views/index.html`:\n\n```jade\n\u003ch1\u003eTest Page!\u003c/h1\u003e\n\u003cp\u003e{{ foo }}\u003c/p\u003e\n```\n\nShould come out rendered correctly with locals and all. Whoo! 🎉\n\n### License \u0026 Contributing\n\n- Details on the license [can be found here](LICENSE.md)\n- Details on running tests and contributing [can be found here](contributing.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshape%2Fexpress","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freshape%2Fexpress","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freshape%2Fexpress/lists"}