assets/javascripts/sandbox/router.coffee in luca-0.9.2 vs assets/javascripts/sandbox/router.coffee in luca-0.9.4
- old
+ new
@@ -1,14 +1,24 @@
Sandbox.Router = Luca.Router.extend
routes:
"" : "default"
- "class_browser" : "class_browser"
- "component_tester" : "component_tester"
+ "build" : "build"
+ "intro" : "intro"
+ "application" : "inspector"
+ "docs" : "docs"
+ "docs/:section" : "docs"
default: ()->
@app.navigate_to("pages").navigate_to "main"
- class_browser: ()->
- @app.navigate_to("pages").navigate_to "class_browser"
+ build: ()->
+ @app.navigate_to("pages").navigate_to "build"
- component_tester: ()->
- @app.navigate_to("pages").navigate_to "component_tester"
+ docs: (section="docs_index")->
+ @app.navigate_to("docs").navigate_to(section)
+
+ intro: ()->
+ @app.navigate_to("pages").navigate_to "intro"
+
+ inspector: ()->
+ inspector = Luca "application_inspector", new Sandbox.views.ApplicationInspector()
+ inspector.toggle()