socketstream/socketstream — Issue #141: SocketStream seems to package all template files in the templates folder
Author: haohello
Created: 2012-02-11 07:15:49+00:00
State: open

SocketStream seems to package all template files in the templates folder and sends it to the browser no matter whatever router it hit.
Preferrably I would like to have something as follows, where I can restrict which route serve what templates, any ideas to get this done?

ss.client.define('main', {
view: 'app.jade',
css: ['libs', 'app.styl'],
code: ['libs', 'modules', 'main'],
templates: ['chat']
});

ss.client.define('dashboard', {
view: 'dashboard.jade',
css: ['libs', 'dashboard/theme.css', 'dashboard/style.css','dashboard/theme1.css'],
code: ['libs', 'modules', 'main'],
templates: ['dashboard']
});