Sam Tregar wrote: > > On Mon, 4 Sep 2000, Perrin Harkins wrote: > > > Embedded perl is absolutely the best answer sometimes, but don't > > underestmate the value of turning your example into this: > > > > [% FOREACH thing = list %] > > <a href="[% thing.url %]"><b>[% thing.name %]</b></a> > > [% END %] > > That isn't really much better, in my opinion. It's still too much of a > departure from the HTML around it. Contrast the above to HTML::Template's > looping: > > <TMPL_LOOP list> > <a href="<TMPL_VAR url>"><b><TMPL_VAR name></b></A> > </TMPL_LOOP> > > With a little education an HTML designer can learn to manipulate the > template syntax. You'll have to teach them to program before they can > deal with a full "foreach" no matter how you dress it up. I happened to use the default syntax of Template Toolkit as an example, although that can also be simplified like this: [% FOREACH list %] <a href="[% url %]"><b>[% name %]</b></a> [% END %] My point though was just that taglib-based systems like Template Toolkit and HTML::Template can be easier for some people to work with. - Perrin
- Re: HTML Template Comparison Sheet ETA Nelson Correa de Toledo Ferraz
- Re: HTML Template Comparison Sheet ETA Matt Sergeant
- Re: HTML Template Comparison Sheet ETA brian moseley
- Re: HTML Template Comparison Sheet ETA Matt Sergeant
- Re: HTML Template Comparison Sheet ETA brian moseley
- Re: HTML Template Comparison Sheet ETA Matt Sergeant
- Re: HTML Template Comparison Sheet ETA brian moseley
- Re: HTML Template Comparison Sheet ETA Perrin Harkins
- Re: HTML Template Comparison Sheet ETA Sam Tregar
- Re: HTML Template Comparison Sheet ETA Ruben I Safir
- Re: HTML Template Comparison Sheet ETA Perrin Harkins
- Re: HTML Template Comparison Sheet ETA Andy Wardley
- Re: HTML Template Comparison Sheet ETA brian moseley
- Re: HTML Template Comparison Sheet ETA Jim Winstead
- Re: HTML Template Comparison Sheet ETA Perrin Harkins
- Re: HTML Template Comparison Sheet ETA Ian Kallen
- Re: HTML Template Comparison Sheet ETA Paul J. Lucas
- Re: HTML Template Comparison Sheet ETA Perrin Harkins
- Re: HTML Template Comparison Sheet ETA Matt Sergeant
- Re: HTML Template Comparison Sheet ETA Marc D. Spencer
- Re: HTML Template Comparison Sheet ETA Matt Sergeant