Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Vroom plugin to allow working with haml-js easy.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
haml-js @ 551c786
lib
test
vroom @ 0ae742b
.gitmodules
README.markdown

README.markdown

This is a plugin for Vroom that allows using haml-js.

Here is the usage from the test app:

var Vroom = require('../vroom/lib/vroom.js');
var PathResource = require('../vroom/lib/vroom/path_resource.js');

Vroom.installPlugin(require('vroom-haml.js'));

var resource = new PathResource(function (r) {

  r.get('/', function () {
    this.foo = "bar";
    this.haml("test")
      .addErrback(function (err) {
        require('/utils.js').puts(err);
      });
  });

});

var app = new Vroom.Application();

app.config.use(function (c) {
  c['logLevel'] = 'DEBUG';
  c['viewDir'] = node.path.dirname(__filename);
});

app.mount('root', '/', resource);
app.boot();
Something went wrong with that request. Please try again.