Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (22 sloc) 0.502 kB

splat

render templates in your express apps (streaming coming soon)

example

var splat = require('splat'),
    app = require('express')();

// configure express to use splat
app.configure(function(){
  // templates location
  app.set('views', 'templates');
  // default view engine
  app.set('view engine', 'mustache');
  // set the engine to splat
  app.engine('.mustache', splat.render);
});

install

$ npm install splat

// for tests

$ npm install splat --dev
Jump to Line
Something went wrong with that request. Please try again.