Replies: 2 comments
-
Unlike JavaScript, there are some complications with file-based routing, imposed by the Rust language. Consider the following layout:
I think these limitations above kind of defeats the point of file-based routing unless we have a command line tool to do code generation. However, it still is kind of unintuitive if for each page a command has to be run to do code generation before it can be enabled. However, just like React / Next.js, file-based routing does not require any first-party support from the core Yew renderer. |
Beta Was this translation helpful? Give feedback.
-
https://github.com/adhocteam/pushup is a file based router with htmx its a continuous compile setup.. |
Beta Was this translation helpful? Give feedback.
-
With the rise of popularity of meta frameworks Next, Nuxt and SvelteKit, it'd be nice to see a file based router for Yew. I'm aware these are meta frameworks which are built on top of React, Vue and Svelte respectively; given the current circumstances, it'd be great if this was supported out of the box or perhaps the Yew team can investigate the creation of a separate project for a meta framework.
Beta Was this translation helpful? Give feedback.
All reactions