wbyoung/jsi-blowtorch

View on GitHub
lib/renderers/haml.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

var Renderer = require('./index');
var haml = require('haml');

function HAMLRenderer() {
  Renderer.apply(this, arguments);
}

HAMLRenderer.prototype = Object.create(Renderer.prototype);
HAMLRenderer.prototype.constructor = HAMLRenderer;

HAMLRenderer.prototype.render = function() {
  return haml.render(this._content, { locals: this._context });
};

module.exports = HAMLRenderer;