Skip to content

🔤  Use Edge templating engine with Express

License

Notifications You must be signed in to change notification settings

paroi-tech/express-edge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@paroi/express-edge

Use Edge templating engine with Express

This is a fork of express-edge with pull request changes of riccycastro. In addition, we upgrade edge.js package to version 5.3.3.

travis npm version npm downloads npm license prs Welcome eslint

Installation

npm install @paroi/express-edge

Usage

See the Edge documentation for how to structure your templates.

const express = require('express');
const app = express();
const { engine } = require('@paroi/express-edge');

// Automatically sets view engine and adds dot notation to app.render
app.use(engine);
app.set('views', `${__dirname}/views`);

app.get('/', (req, res) => {
  res.render('users.index', { users: [...] });
});

app.listen(3000);

License

MIT © Daniel Eckermann

About

🔤  Use Edge templating engine with Express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%