lib/carte/client/router.coffee in carte-server-1.0.7 vs lib/carte/client/router.coffee in carte-server-1.0.8

- old
+ new

@@ -2,23 +2,24 @@ Backbone = require('backbone') module.exports = class Router extends Backbone.Router routes: '': 'list' - 'slideshow': 'slideshow' ':title': 'show' + ':title/history': 'history' list: (string)-> console.log '[router] list', string location.hash = '/' if location.hash == '' @current = 'list' @query = querystring.parse(string) - show: (title)-> + show: (title, string)-> console.log '[router] show', title @current = 'show' @title = title - - slideshow: (string)-> - console.log 'slideshow', string - @current = 'slideshow' @query = querystring.parse(string) + + history: (title)-> + console.log '[router] history', title + @current = 'history' + @title = title