Not Particularly Meaningful
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

express-edge

1.0.0 • Public • Published

express-edge

Use Edge templating engine with Express

travis npm version npm downloads npm license prs Welcome eslint

Installation

npm install express-edge --save

Usage

See the Edge documentation for how to structure your templates.

const express = require('express');
const app = express();
 
// Automatically sets view engine and adds dot notation to app.render
app.use(require('express-edge'));
app.set('views', `${__dirname}/views`);
 
app.get('/', (req, res) => {
  res.render('users.index', { users: [...] });
});
 
app.listen(3000);

License

MIT © Daniel Eckermann

install

npm i express-edge

Downloadsweekly downloads

71

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability