"# or you can do this with qq (non interpolated text must not contain !)"
You've missed the exclamation marks from your HTML comments start tags.
For HTML I often find it better to use a character other than an exclamation mark to begin and end the qq string, to avoid having to frequently escape them. (Characters can be anything non-alphanumeric and non-whitespace).