                                 when "demo" then new_state.demo = value
                                 when "date" then new_state.date = value
                                 when "version" then new_state.version = value
+                                when "view" then new_state.view = value
                                 else
                                         console.log("stupid key in route: ",key)
                         i += 2

                list_hidden: false
                demo: false
                date: undefined
                version: undefined }


        constructor: () ->

                        ret += "/date/"+data.date
                if data.version? and data.version
                        ret += "/version/"+data.version
                if data.view? and data.view
                        ret += "/view/"+data.view
                if /[^\/]*:\/\/[^\/\#]*\#/.test(window.location)
                        ret.replace(/^\//,"#")
                ret
