Add support for HTML templates