I've just made a rough-cut version of tiny ttdiff tool. Here's an
excerpt of the doc. It should be quite useful for your co-working
desiners, especially.

wrt the implementation, I use a quite simple way to compare two
templates, which re-builds barebone templates using tokens made by
Template::Parser::split_text and compares them with Text::Diff.

You can get it at http://bulknews.net/lib/archives/ttdiff-0.01.tar.gz

Any suggestion and patches are welcome!

=head1 NAME

ttdiff - find difference between strcutures of two TT templates

=head1 SYNOPSIS

  ttdiff file1 file2

=head1 DESCRIPTION

C<ttdiff> is a command line tool to find structured difference between
two TT templates. It may be quite useful for checking before your
co-working designer fixes up your bare-bone template into production
ready design. What you should check is just run C<ttdiff> against your
template and the final template to see any typos or losing in
migration are there.

=head1 PREREQUISTICS

=over 4

=item *

Template-Toolkit 2.07

=item *

Text::Diff 0.32

=back

=head1 AUTHOR

Tatsuhiko Miyagawa E<lt>[EMAIL PROTECTED]<gt>

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.

=head1 SEE ALSO

L<Template>, L<Text::Diff>

=cut


Reply via email to