Have you seen RiotControl? It might be what you're after?
Yep and it 's a good start. However, it's dependent on Urls for routing. A state based router does not require url routing (but can include it). State based routing makes it much easier to support nested and named views. Angular-UI-Router does this for instance.
I'm on it ;-)
Yes please! I would love something like this!
How about this? https://github.com/RiotGear/rg-router
I saw it this morning. Very nice! Using mixins is a cool way to implement it.
One of the things I wanted to make sure was to keep the tags and the states uncoupled. So you can use the router how ever you want. One tag could be affected by more than one state, in however you want it to. Setting hidden variables or toggling visibility
+1
Hi, I'm new to state based routers and I cant figure out how to use rg-router from the example given on github demo folder. When should I choose this router instead of the stock router that comes with riot js? Can you share some use cases?
Also can you provide an example using nested views?