All Projects â†’ ecrmnn â†’ express-edge

ecrmnn / express-edge

Licence: MIT license
🔤  Use Edge templating engine with Express

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to express-edge

engine
A pragmatic approach to templating for PHP 7.x+
Stars: ✭ 31 (-31.11%)
Mutual labels:  template-engine, templating
Mikado
Mikado is the webs fastest template library for building user interfaces.
Stars: ✭ 323 (+617.78%)
Mutual labels:  template-engine, templating
dry
Dry is a new template engine and language, and is a superset of Shopify's Liquid, with first-class support for advanced inheritance features, and more. From the creators of Enquirer, Assemble, Remarkable, and Micromatch.
Stars: ✭ 66 (+46.67%)
Mutual labels:  template-engine, templating
morestachio
Lightweight, powerful, flavorful, template engine.
Stars: ✭ 45 (+0%)
Mutual labels:  template-engine, templating
Tempy
Python Object Oriented Html Templating System
Stars: ✭ 126 (+180%)
Mutual labels:  template-engine, templating
Microwebsrv
A micro HTTP Web server that supports WebSockets, html/python language templating and routing handlers, for MicroPython (used on Pycom modules & ESP32)
Stars: ✭ 420 (+833.33%)
Mutual labels:  template-engine, templating
view
Template Engine For AdonisJS
Stars: ✭ 13 (-71.11%)
Mutual labels:  template-engine, templating
Phptal
PHP Template Attribute Language — template engine for XSS-proof well-formed XHTML and HTML5 pages
Stars: ✭ 155 (+244.44%)
Mutual labels:  template-engine, templating
Metalsmith React Templates
A metalsmith plugin to render files using React / Preact / JSX based templates.
Stars: ✭ 90 (+100%)
Mutual labels:  template-engine, templating
Awesome Twig
A curated list of amazingly awesome Twig extensions, snippets and tutorials
Stars: ✭ 63 (+40%)
Mutual labels:  template-engine, templating
Jxls
Java library for creating Excel reports using Excel templates
Stars: ✭ 128 (+184.44%)
Mutual labels:  template-engine, templating
Pupa
Simple micro templating
Stars: ✭ 231 (+413.33%)
Mutual labels:  template-engine, templating
htmldoom
An intuitive, high performance HTML rendering framework
Stars: ✭ 36 (-20%)
Mutual labels:  template-engine
Velocity
🚀Velocity template engine for JavaScript and PHP.
Stars: ✭ 33 (-26.67%)
Mutual labels:  template-engine
Kvantum
An intellectual (HTTP/HTTPS) web server with support for server side templating (Crush, Apache Velocity and JTwig)
Stars: ✭ 17 (-62.22%)
Mutual labels:  template-engine
TwistPHP
A fresh, new PHP MVC framework built from the ground up
Stars: ✭ 27 (-40%)
Mutual labels:  templating
NativeMessaging
C# Chome Native Messaging Library
Stars: ✭ 55 (+22.22%)
Mutual labels:  edge
jinja.dart
Jinja2 template engine port for Dart.
Stars: ✭ 38 (-15.56%)
Mutual labels:  template-engine
WebView4Delphi
WebView4Delphi is an open source project created by Salvador Díaz Fau to embed Chromium-based browsers in applications made with Delphi or Lazarus/FPC for Windows.
Stars: ✭ 157 (+248.89%)
Mutual labels:  edge
html
HTML templating and streaming response library for Service Worker-like environments such as Cloudflare Workers.
Stars: ✭ 41 (-8.89%)
Mutual labels:  templating

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();
const { config, engine } = require('express-edge');

// Configure Edge if need to
config({ cache: process.env.NODE_ENV === 'production' });

// 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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].