tomhughes left a comment (openstreetmap/openstreetmap-website#6187)

No you're right that you don't have to send the whole page - you can do `render 
"_page"` to render the template but not as a partial but you still get the 
whole of the layout so you don't really save much.

Yes I guess your solution from #5175 works as well though it seems quite hacky 
and I don't know if it's really guaranteed to work given what you send isn't 
really valid HTML but then neither is just sending the partial.

I think what we're trying to do is really push things beyond what's intended 
though? Most examples seem to assume you're just sending the full page as 
normal and leaving the client to figure out what bits are needed...

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6187#issuecomment-3066205253
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/6187/c3066205...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to