Here I wondered whether ...

(1) retrieve the HTML content in the view and pass it to the template in a variable (as I finally ended up doing),
(2) pass a variable to the template with the name of the HTML, and include the corresponding file in the template.

@sonney2k, is any of them better?