argo-formatter-siren
Version:
A Siren formatter for Argo.
14 lines (11 loc) • 326 B
JavaScript
var Siren = function() {
this.name = 'siren';
this.mediaTypes = ['application/vnd.siren+json'];
this.extension = '.siren.js';
this.subdirectory = '/siren';
};
Siren.prototype.format = function(filename, locals, cb) {
var template = require(filename);
cb(null, template(locals));
};
module.exports = new Siren();