PylotLight / wails-htmx-templ-template

121 stars 9 forks source link

Loading index from chi #8

Closed EduardoOliveira closed 3 months ago

EduardoOliveira commented 3 months ago

Hi there, Have you font a way to load a route as default page instead of index.html?

I'm trying to develop a application that should work both as a self hosted service and desktop application. I currently have a full state management in the URL of the page, loading the initial request from an html file with hx-gets will make it hard to keep path state. For instance /lib/objID/details that obj is would have to be parsed by js and used to modify the hx-gets... Not as smooth as I would want....

If you have any insight that would be perfect, if not, I'll just keep hacking and report back.

Thanks for your project

PylotLight commented 3 months ago

I don't use chi anymore as of 1.22 but you could just use hx-trigger="load" or something no? Probably better to join the discord to discuss routing management as there's no specific issue here, cheers.