1.0.0 • Published 8 years ago

electron-jade-protocol v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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)