Hello all!
I'm happy to announce Accountant, a tiny library to make navigation simple for
single-page applications using Secretary.
Using Accountant means not having to type
(dom/a #js {:href "/some/page" :onClick #(do (.preventDefault %) (nav!
"/some/page"))} "some page")
within your app. Instead, call `accountant.core/configure-navigation!` once
you've defined your routes. Henceforth, clicking a link where the href
corresponds to any defined Secretary route will automatically prevent a full
page reload and will trigger the Secretary dispatch function for that route
instead. Links that don't match known Secretary routes will load as normal.
The project URL can be found here: https://github.com/venantius/accountant
Cheers!
~ V
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.