Skip to content
This repository

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…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 haml-js @ 551c786
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 vroom @ 0ae742b
Octocat-spinner-32 .gitmodules
Octocat-spinner-32 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.