dolanor / rip

REST in peace
BSD 3-Clause "New" or "Revised" License
68 stars 0 forks source link

Improve base template #16

Open dolanor opened 4 months ago

dolanor commented 4 months ago

The current template is not that good in the sense that each resource gives back a full web page code, with headers, etc. In HTMX, each resource would just render to a simple HTML view of the resource. That would save a bunch data.

If I access the resource directly, I should respond with the full page directly though.

I guess, in the case I get the HX-Request: true header to determine which one to chose: full page or just resource.

prologic commented 4 months ago

I like the idea of adding HTMX support!