Stipple.jl
Stipple.jl copied to clipboard
use multi routes in single page
i wonder is it possible to have a SPA(Single Page Application) with stipple so we can render different models in one page without refreshing the page and create multiple pages a feature like (Link to="some path" in REACT)
also i would appreciate anyone who can explain me what are channels briefly
@alerem18 for now you'll have to use something complicated and solve this problem with genie instead of declaring frontend routing with something like stippleui tabs. I am thinking of adding it
https://github.com/GenieFramework/MultiRoute
I think it is not very difficult to support multiple models on a single page.
We would need to have a window.CHANNEL = {modeltype1: channel1; modeltype2: channel2} dict indstead of the current window.CHANNEL = "my channel string".
I could imagine that we could use that to implement SPAs with different models.
Maybe we could even do loading on demand ...
yes I interpreted it wrong. Go with helmut's answer
@alerem18 for now you'll have to use something complicated and solve this problem with genie instead of declaring frontend routing with something like stippleui tabs. I am thinking of adding it
https://github.com/GenieFramework/MultiRoute
i've tried that already, it's not SPA, it's just multi-page multi-route problem, the goal is to use something like react or vue do, render different models on the same page
My 2 cents:
- multiple (Vue) models on the same page would be useful. However, that was pretty complicated in Vue 2 and got much simpler in Vue 3. As we need to migrate to Vue 3 anyway, I would add multi-model support after Vue 3 support.
- SPA routing should use a proper router (like vue-router) vs rolling out a custom solution. So we could also look into officially supporting routing.
- traditional SPAs are a dying trend, with users moving to JS frameworks with SSR and dynamic islands (Next, Nuxt, Remix, etc). We might want to consider integrating and bundling a front-end framework instead of "just" routing.