I am trying to build a SPA.
There are some requirements I am desperately trying to achieve. I have an index.html file as a layout which has some templates defined. The rendering of that works as expected through htmx calls.
The issues I am facing are the following:
- I want to enable routes to dynamic content e.g.: I have a list with items. When clicking on an item I want to render a template that shows more information on that item. In general that works but now I also want the URL to change to .../item/:id without re-rendering the entire page
- I also want to be able to access said item information through the link directly and have the layout(index.html) rendering as well as I need it for loading styles and scripts
I researched a lot and tried various different things. I also switched from using gin to echo now as I hoped for the integrated rendering to take care of that stuff but without any luck so far