electron-jade-protocol
v1.0.0
Published
A jade protocol for electron.
Readme
Electron Jade Protocol
Install
npm install --save electron-jade-protocolUsage
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 = require('electron-jade-protocol')(jadeOptions, globalLocals)Updating the protocol with local variables
These variables will be cleared once the next jade file has been requested.
jadeProtocol(locals)