Django - concatenating multiple HttpResponses for partial templates
I have a web page where I populate elements (in a grid) with HTML. This works nicely using Django's render() and querying using HTMX, as required.
I now have a case where I'd like to populate the innerHtml of the element in the page with multiple partial responses - ie. I have data for query1, query2, etc. and want to concatenate the rendered partial HTML responses for query1, query2, ...
Can this be done on the database side by concatenating HttpResponse objects in any way? It would appear fairly efficient to do so, if possible.
Or should I parse on the client side, send off the request, and concatenate all partial HTML snippets there before stuffing them into my web page element?