How can we create .html file using plugin?

How can we create .html file using plugin?

We have used XML plugins to generate HTML stream to be included in an email.
Hope this helps.