Anyone sick of your co-workin' designers breaking your templates when they fix-up your bare bone template into production ready HTML? I've made simple tools to prevent the issue.
- htdiff -- diff for HTML::Template template structures
- ttdiff -- diff for Template Toolkit template structures
These tools re-build bare-bone
structure of your templates and compares them, output the difference if any. It'll be quite useful in template-design migration. What you should do is just run (h|t)tdiff against your bare bone template and the final template (which may be full of TABLE tags or something like that) to see if there's any typos or losing in migration.
Any suggestions and patches welcome (via email is okay to me).
Update: put an emphasis about that these utils work on the structures of the template, rather than contents. Thanks to tomhukins for pointing it.
--
Tatsuhiko Miyagawa
miyagawa@cpan.org