Sha256: 0a3afb87706533f877d4747164fe0db12be0712fe533f0c5c36fb0f763ee3140
Contents?: true
Size: 444 Bytes
Versions: 4
Compression:
Stored size: 444 Bytes
Contents
querystring = require('querystring') Backbone = require('backbone') module.exports = class Router extends Backbone.Router routes: ':title' : 'show' '' : 'list' list: (string)-> console.log '[router] list', string location.hash = '/' if location.hash == '' @current = 'list' @query = querystring.parse(string) show: (title)-> console.log '[router] show', title @current = 'show' @title = title
Version data entries
4 entries across 4 versions & 1 rubygems