embark-area-51/test_apps/test_app/extensions/embark-service/index.js

13 lines
339 B
JavaScript
Raw Normal View History

2018-02-28 22:45:39 +00:00
var Haml = require('haml');
module.exports = function(embark) {
embark.registerServiceCheck('PluginService', function(cb) {
cb({name: "ServiceName", status: "on"});
});
2018-02-28 22:45:39 +00:00
embark.registerPipeline((embark.pluginConfig.files || ['**/*.haml']), function(opts) {
var source = opts.source;
return Haml.render(source);
});
};