0.0.2 • Published 10 years ago
ss-jsx v0.0.2
JSX (JS) wrapper for SocketStream 0.3
Allows you to use JSX files (.jsx) in your SocketStream project.
Instructions
Add ss-jsx
to your application's package.json
file and then add this line to app.js:
ss.client.formatters.add(require('ss-jsx'));
For using JSX with another programming language that transcompiles to JavaScript pass compiler function in second parameter (example for iced-coffee-script):
ss.client.formatters.add(require('ss-jsx'), {
additionalTransform: function (input) {
return require('iced-coffee-script').compile(input, {'bare': true});
}
});
0.0.2
10 years ago