(template.php supports both <!--~foo {~--> and simply ~foo {~)
The former is great for html files (almost everywhere) because then the
template file is valid html. (Nice for finding html errors, and for syntax
hilighting.)
This patch switches to the short form for for non-html files.