Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Jade (HTML) code wrapper for SocketStream 0.3

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 HISTORY.md
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
Octocat-spinner-32 wrapper.js
README.md

Jade (HTML) wrapper for SocketStream 0.3

Allows you to use Jade files (.jade) in your SocketStream project.

Instructions

Add ss-jade to your application's package.json file and then add this line to app.js:

ss.client.formatters.add(require('ss-jade'));

Passing local variables

Some 3rd-party authentication libraries will want to inject HTML into your views. You may easily pass through local variables as so:

ss.client.formatters.add(require('ss-jade'), {locals: {myvar: 'myvalue'}});
Something went wrong with that request. Please try again.