This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* NOTE: Comments need to be in multiline format like this, instead of "// Comment" */ | |
window.location = "web+sublime://~/working/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Summit = require 'summit' | |
app = new Summit() | |
router = app.router() | |
router.get '/', (respond, views) -> | |
respond views.app | |
router.get '/theme/:theme', (app, req) -> | |
app.templateGlobals.theme = req.params.theme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Bring in static test data | |
data = require './data' | |
# Spin up graph store | |
Rel = require('./rel')() | |
# Set up the friendships | |
Rel.put [ | |
data.events.aliceBefriendsBob | |
data.events.carolBefriendsBob |