Edge
Templating with some fresh air
Edge is a logical templating engine for Node.js. The syntax language is naturally similar to Javascript, making it simpler to write and remember.
Features
- Beautiful Syntax
- Encourages component based layout
- Runtime debugging via chrome devtools.
- Helpful error messages
- Support for Layouts
- Extraction markup via Partials.
The official documentation will soon be published on http://edge.adonisjs.com
Usage
const edge = require('edge.js')
edge.configure({
cache: process.env.NODE_EV === 'production'
})
edge.registerViews(path.join(__dirname, 'views'))
edge.render('welcome')
Running Tests
npm run test:local
npm run test
npm run test:win
npm run coverage
Running Benchmarks
Make sure to install nunjucks
before running benchmarks in comparison to nunjucks.
node benchmarks/loop.js
node benchmarks/conditionals.js