Socket
Socket
Sign inDemoInstall

edge.js

Package Overview
Dependencies
9
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

edge.js


Version published
Weekly downloads
21K
increased by7.77%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.1.1 (2017-10-08)

Features

  • tags: add mustache tag (d46022e)

<a name="1.1.0"></a>

Features

  • tags: allow multiline tags (e7783f5)

<a name="1.0.2"></a>

Readme

Source

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 Version Build Status Downloads Stats Appveyor




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

const edge = require('edge.js')

// configure cache
edge.configure({
  cache: process.env.NODE_EV === 'production'
})

// register views
edge.registerViews(path.join(__dirname, 'views'))

// render view
edge.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

FAQs

Last updated on 08 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc