How to show an html template in the body of an http response?

Any idea to start?

 

Thanks!

  Discussion posts and replies are publicly visible