This module is a simple
file protocol interceptor for electron which compiles all (local) URLs to files with
.pug extension (e.g
/home/electron-pug/index.pug) on the fly.
npm install electron-pug
Just initialize this module with desired options for Pug package and your locals:
'use strict';const app BrowserWindow =const locals = /* ...*/const setupPug =// Standard stuffapp
Here is a list of all projects (known to me) who have silently endorsed this project (or its predecessor) by copying the source code without attribution:
electron-posthtml, and many other that I failed to track down!
If you want to have least effort when developing electron packages, take a look at neutron!