Electron Jade Protocol
npm install --save electron-jade-protocol
Registering the protocol
This will wait until the application is ready, and will then register a buffer protocol intercept for the
file scheme, which will intercept all
file://... requests, and if a request is for a jade file, it will compile it.
jadeProtocol = jadeOptions globalLocals
Updating the protocol with local variables
These variables will be cleared once the next jade file has been requested.