Actually, tidy can do this for you. Check the manpage and look for the new-*-tags config options. Basically, you create a config file containing a line like:
And run tidy with the -config option pointing at that config file. I think tidy will report these as warnings, but it will still clean up the file for you.new-empty-tags: tmpl_var
Also, tidy knows about ASP style tags (<% ... %>) so those who can use them have an easy out.
-sauoq "My two cents aren't worth a dime.";
<code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>