in reply to diff for H::T and TT

This is a good solution if you're not running a version control system, but in my experience it's a good idea to use version control for Web/software development.

Sure, developers and designers require training to use tools like CVS, but you could have a nightly job update the CVS repository from a working directory to reap some of the benefits of version control without people having to learn new skills.

There are good CVS clients available for a wide range of platforms. CVSWeb lets you find out who changed what, when and why without needing any specialised software.

If you can't use CVS or some other version control system, your scripts could be useful, but I believe you'd be better off with a more generic solution.

Replies are listed 'Best First'.
Re: Re: diff for H::T and TT
by miyagawa (Chaplain) on Apr 24, 2002 at 15:43 UTC
    Oh well, I do use CVS! Note that these tools find difference of structure of the template. (My first post was just a little ambiguous for this point. Thanks for pointing this)

    What this tool (possibly) solves is the situation below:

    Programmers make a simple template

    First you'd make a bare bone template like this:
    <TABLE> [% FOREACH p = product %] <TR><TD>name: [% p.name %]</TD></TR> [% END %] </TABLE>
    okay, this HTML is very simple.

    Designers migrate this template into production ready style

    Their HTML is kind of hell, with various TABLE tags or something. (Oh well, stop argueing about style-sheet vs TABLE tag here). They possibly have difficulty in migrating the barebone template into production ready design. They'd make typos in template variable name, or forget to paste some code chunks in the template.

    Then ttdiff and htdiff will find the structual differences between the two template. It can work more nicely with CVS, off course!

    --
    Tatsuhiko Miyagawa
    miyagawa@cpan.org