first commit

This commit is contained in:
Iuri Matias 2018-06-28 10:36:55 -04:00
commit 89bd041125
4 changed files with 35 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules/

7
index.js Normal file
View File

@ -0,0 +1,7 @@
const Haml = require('haml');
module.exports = function(embark) {
embark.registerPipeline((embark.pluginConfig.files || ['**/*.haml']), function (opts) {
return Haml.render(opts.source);
});
};

13
package-lock.json generated Normal file
View File

@ -0,0 +1,13 @@
{
"name": "embark-haml",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"haml": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/haml/-/haml-0.4.3.tgz",
"integrity": "sha1-90BTGPPC7dGXpIsbjysvE+C7U3g="
}
}
}

14
package.json Normal file
View File

@ -0,0 +1,14 @@
{
"name": "embark-haml",
"version": "1.0.0",
"description": "Embark plugin to support haml templates",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Iuri Matias <iuri.matias@gmail.com>",
"license": "ISC",
"dependencies": {
"haml": "^0.4.3"
}
}