1.0.0 • Published 6 years ago

yet-another-electron-pug v1.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

Build Status Known Vulnerabilities Coverage Status

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