Slide 66
Slide 66 text
This is how we load them
// My SocketStream 0.3 app
!
var http = require('http'),
ss = require('socketstream');
!
// Define a single-page client called 'main'
ss.client.define('main', {
view: 'app.html',
css: ['libs/reset.css', 'app.styl'],
code: ['libs/jquery.min.js', 'app'],
tmpl: '*'
});
!
// Serve this client on the root URL
ss.http.route('/', function(req, res){
res.serveClient('main');
});