Hello you all again:

I asked Why are you using the CGI plugin within the templates, because I
could't understand it. Now I've learn several things:

It is good because:
1. You can change to XHTML very simply
2. it generates a cleaner final HTML code (always closes the tags)
3. when not working with designer you can generate a smaller and cleaner code

but it is bad because:
1. You cannot render the page in a browser (neither do you without CGI.pm
but at least you can see a little more)
2. When working with designer, you have to explain them the syntax of CGI.pm
3. You don't have to learn new syntax of CGI.pm.
4. It takes more processor time to render the page. __ not sure of this __
can you tell me if am I wrong?

I also think, that if in the future you have to change to another
templating solution other than TT2, if you didn't use CGI.pm the templates
will be more reusable, don't you think. 
As you can see I'm always looking for flexibility. But believe me, if you
are starting a project that may grow in the future, always look for
flexibility. I didn't do it in the past and now I'm paying it :-( :-). 

Thank you very much you all.


At 17:16 30/01/2002 +0000, Tony Bowden wrote:
>On Wed, Jan 30, 2002 at 05:05:34PM +0000, Andrew McFarland wrote:
>> I meant obscure in the sense of "Less obvious to non-programmers".
>> I can still remember trying to explain FOREACH loops to graphic designers. 
>> It was quite rewarding, because they were really chuffed when they 
>> understood. There's no way they'd understand cgi.li(myarray) though.
>
>This I find great difficulty in believing... any we've worked with find
>it much easier to understand "If this is an array, then it does it for
>everything in it" than trying to deal with looping constructs...
>
>But we're heading way off topic now ...
>
>Tony
>-- 
>--------------------------------------------------------------------------
> Tony Bowden | [EMAIL PROTECTED] | http://www.tmtm.com/
>                   I've got clouds in the upstairs but I still remember me
>--------------------------------------------------------------------------
>
>_______________________________________________
>templates mailing list
>[EMAIL PROTECTED]
>http://www.template-toolkit.org/mailman/listinfo/templates
> 



Reply via email to