I think many of those could just be replaced by multi-line strings and/or here documents to get most of the win.
I agree that a pretty good chunk of it can be done with here-docs, but template files do have attractive features (separation of concerns, syntax highlighting, etc) that made it worth asking.