ArnaudRinquin/express-plates — pull request #3 by CaptainN (2013-05-14 21:42:58+00:00)
Title: Cleaned up CoffeeScript error

I tried your package, and found that the CoffeeScirpt return value in the constructor was causing an error (no init method on object).

So I basically took out CoffeeScript, and just made it a JS File. I also rearranged some things that so that a normalized require statement code up could work:

```JavaScript
var expressPlates = require('express-plates');
var plates = require('plates');

app.engine('.html', expressPlates);
app.set('views', __dirname + "/views");

app.get('/', function(req, res)
{
var map = plates.Map();
map.class('content').to('content');
map.where('id').is('title').to('title');
map.where('data-content').is('name').to('name');

res.render('index.html', {
data: {
title : 'Plates is pretty cool, so is Express',
name : 'Express-Plate user',
content : 'It seems to work quiet well'
},
map: map
});
});
```

The original example should also still work, as I added the init method (with the same return value) as property on the function returned by require('express-plates');

Kevin N.