Fork me on GitHub
#re-frame
<
2021-06-01
>
az19:06:01

Hi all, can anyone share an example repo showing how to implement nested routing in reframe and reitit? Something like: posts/post where there is something like an outlet that renders the post fragment? Trying to have a list of posts on the left, you click and show the details of the selected post on the right.

ingesol14:06:54

A bit tricky to know exactly what you are looking for, but this might be similar https://github.com/ingesolvoll/kee-frame-sample

ingesol14:06:11

It’s not a minimal example, but it should contain a simple version of what you’re asking for

az16:06:34

@U21QNFC5C thank you. Going to look through this. What I was able to find yesterday were a few examples of using reitit’s controllers to update the db with a sub route, and then allow the mounted component to handle nesting

az16:06:47

definitely more powerful than a fully baked outlet system found in a full fledged framework like ember or angular, but seems like people just roll their own solution in clojure so a bit more boilerplate seems to be needed.

az16:06:21

is this right?

ingesol17:06:30

Can’t give a definitive answer to this particular thing, but in general that seems very right. Clojure would definitely be more powerful, while requiring more initial effort, than something like angular.