On Mon, 4 Sep 2000, Nelson Correa de Toledo Ferraz wrote:

> I still think that this:
> 
>    <? foreach $name (@names) { ?>
>          Name: <?=$name?> <P>
>          Job: <?=$job{$name}?> <P>
>    <? } ?>
> 
> Is cleaner (well, as much as perl can be :-)) than this:
> 
>    <TMPL_LOOP NAME=EMPLOYEE_INFO>
>          Name: <TMPL_VAR NAME=NAME> <P>
>          Job: <TMPL_VAR NAME=JOB> <P>
>    </TMPL_LOOP>

That's because you're a Perl programmer.  The template syntax wasn't
designed for your tastes.  It was designed for the HTML designers you will
eventually have to work with - wether while you're actually on the project
or when it moves into maintainance and needs design changes.

> And the first one has two major advantages: 1) requires less code in the
> Perl modules and 2) allows designers to know how Perl looks like.

1) The more code you put in your modules the better.  This promotes code
reuse and better documentation.

2) Say what?  Are you running a school or trying to things done?  Putting
raw Perl in your HTML isn't helping you designers is any way I understand.

-sam


Reply via email to