I had a HTML template that I wanted to parse as a string. The template mostly used variables to set dynamic values, however, one setting used a foreach loop so I couldn't pass it.
There is a story behind why I wanted to do that, and it was quite plausible, however I need no longer seem to need to do this, it seems, so I can let it be.
Thanks for you input! You wiped the last question mark regarding heredoc from the electronic circuits of my brain.