Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Less (CSS) 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 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 HISTORY.md
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

Less (CSS) wrapper for SocketStream 0.3

Allows you to use Less files (.less) in your SocketStream project.

Instructions

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

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

JavaScript variable injection

The ss-less wrapper allows you to inject JavaScript variables into your Less code via a prepended Less string of your own making. For example:

var ssLess = require('ss-less');
var assetsPath = 'https://s3.amazonaws.com/example_assets_path/';
...
ssLess.prependLess('@assets-path: "' + assetsPath + '"');
ss.client.formatters.add(ssLess);
Something went wrong with that request. Please try again.