Skip to content

Repository files navigation

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.


NPM VersionBuild StatusDownloads StatsAppveyor




Features

  1. Beautiful Syntax
  2. Encourages component based layout
  3. Runtime debugging via chrome devtools.
  4. Helpful error messages
  5. Support for Layouts
  6. Extraction markup via Partials.

The official documentation will soon be published on http://edge.adonisjs.com

Usage

constedge=require('edge.js')// configure cacheedge.configure({cache: process.env.NODE_EV==='production'})// register viewsedge.registerViews(path.join(__dirname,'views'))// render viewedge.render('welcome')

Running Tests

# just the tests
npm run test:local
# tests + report coverage on coveralls
npm run test# run tests on windows
npm run test:win
# tests with local coverage report
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

About

Node.js templating engine with fresh air

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages