Template Render helper for connect: res.render(view, options).
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 45 commits behind expressjs:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
test
.gitignore
.travis.yml
Makefile
README.md
package.json
render.js

README.md

connect-render

Build Status

Template Render helper for connect.

Install

$ npm install connect-render

Usage

var connect = require('connect');
var render = require('connect-render');

var app = connect(
  render({
    root: __dirname + '/views',
    layout: 'layout.html',
    cache: true, // `false` for debug
    helpers: {
      sitename: 'connect-render demo site',
      starttime: new Date().getTime()
    }
  })
);

app.use(function(req, res) {
  res.render('index.html', { url: req.url });
});

app.listen(8080);