Oh! I didn't realize this is how we're doing this. Sorry if my comments earlier confused you.

This is indeed a bit too hacky. The Handlebars templates should really be in their own files, I just shoved them in a `{{raw}}` tag mostly for laziness reasons. The `hosts` parameter should still be passed in dynamically when the Handlebars template is rendered. I can take a look at it if you'd rather not.