Add heredoc for HTML template processing