Htmx swap placeholders from templates
The experiment here is using the object wrapped template idea with a simplified mutation observer. The template content is used to replace the big pipe placeholder via htmx.swap(). A response containing the needed asset markup is attached as a data attribute. Existing htmx request attribute processing is called directly to move the assets into place.