When building out apps with #HTMX, I end up with views and templates for both "pages" and (lots of) “partials”. Does anyone have any tips for organizing those two things?

It feels kind of messy in a way that having the strict boundary of a separate API doesn’t. (Although having a separate frontend framework just to client-side render HTML is messy in a whole other way)

Maybe just being more disciplined about routing and naming the partial templates would solve some of this…

Some people also use a url query parameter or an http header to tell any route to not include the layout wrapper or similar.