ethertoff.js
clone your own copy | download snapshot

Snapshots | iceberg

No images in this repository’s iceberg at this time

Inside this repository

index.js
application/javascript

Download raw (373 bytes)

var path = require('path');
var app = module.exports = require('derby').createApp('hello', __filename);
app.loadViews(__dirname);
//app.loadStyles(__dirname);

// Routes render on client as well as server
app.get('/', function(page, model) {
    // Subscribe specifies the data to sync
    model.subscribe('hello.message', function() {
        page.render();
    });
});