Miss any of our Open RFC calls?Watch the recordings here! »

electron-jade-protocol

1.0.0 • Public • Published

Electron Jade Protocol

Build Status Code Climate

Install

npm install --save electron-jade-protocol

Usage

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)

Install

npm i electron-jade-protocol

DownloadsWeekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar