2 ms·
I've been using reagent with re-frame[1]. Routing just uses goog.events and goog.history to listen for navigation events, secretary[1] to define routes, which u
by enoch_r 11y ago
I've been using reagent with re-frame[1]. Routing just uses goog.events and goog.history to listen for navigation events, secretary[1] to define routes, which update the state rendered by your components. The code is here: https://github.com/Day8/re-frame-template/blob/master/src/leiningen/new/re_frame/src/cljs/routes.cljs https://github.com/Day8/re-frame-template/blob/master/src/le...
[1] https://github.com/Day8/re-frame https://github.com/Day8/re-frame and https://github.com/Day8/re-frame-template https://github.com/Day8/re-frame-template
You'll have to do `lein new re-frame <project> +routes` to pull in the routing template.
[2] https://github.com/gf3/secretary https://github.com/gf3/secretary
- zastavka 11y agoThanks for this! re-frame's probably little heavyweight for what I'd want to do, but secretary looks rad, so at the very least I'll look into that.