There are instances where you want to convert HTML/JavaScript source. Some people use AJAX, ASPX or other types of code to do “includes”.
I normally build my include page in html first to make sure I like the look of it then I put it in a page that converts it for inclusion.