1.0.0 • Published 6 years ago
yet-another-electron-pug v1.0.0
yet-another-electron-pug
Yet another electron pug plugin. Main advantage over other similar modules is the ability to update pug locals
on every file load.
Install
$ npm install yet-another-electron-pug
Usage
const electronPug = require('yet-another-electron-pug');
const pugOptions = {
pretty: true
};
function onFileLoad(file, cb){
var locals = {greeting:'hello'};
return cb(locals);
}
electronPug(pugOptions, onFileLoad);
1.0.0
6 years ago