brentonashworth/one — Issue #118: Navigation/Routing in ClojurescriptOne
Author: murtaza52
Created: 2012-02-24 16:21:58+00:00
State: open

Hi,

I am trying to use the clojurescriptone app as a template for a new application. My question is how do I structure navigation or routing in my app.

What I understand from looking at the one.sample.animation space is this -

1) Add all pages that a user can route/navigate to on :init. This is done in the initialize-views function.
2) Show hide relevant sections by setting the display css style. This is done in the show-form and show-greeting function.

My question is that is this the way that navigation is intended to be done or am I missing some obvious way to route? Should the HTML of all pages be appended when the app loads, and then show hide the relevant sections as needed?

Thanks,
Murtaza