I don't understand why having your template be valid HTML is even a little bit good (I'm not saying it's bad — I just don't see why it's better than anything else). I don't think sending unprocessed templates as pages is a common use case, so there is zero benefit in having them be in a language that a browser can render unmodified.