Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ralyodio/express-template-demo

Demo of using template engines with express.js and node.js
https://github.com/ralyodio/express-template-demo

Last synced: 2 months ago
JSON representation

Demo of using template engines with express.js and node.js

Awesome Lists containing this project

README

        

Express Template Demo
===========

A simple demo of using ejs and dustjs-linked template engines for your views in Express 3.x.

More info
----

* http://embeddedjs.com/
* http://linkedin.github.com/dustjs/
* https://github.com/linkedin/dustjs/wiki/Dust-Tutorial
* http://nodejs.org/
* http://expressjs.com/

Dependencies
----

see package.json

Installing app
----

git clone https://github.com/chovy/express-template-demo.git
cd express-template-demo/demo
npm install
node app.js

Edit the `template_engine` variable in app.js to either 'dust' or 'ejs'.
Edit the `hostname` variable in app.js to localhost or something else.

Start the app with 'node app.js'