Click here to get back home

What's better than Template Toolkit?

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
What's better than Template Toolkit? fishfry 03-26-2008
Posted by Ted Zlatanov on March 26, 2008, 5:39 pm
Please log in for more thread options
On Wed, 26 Mar 2008 09:50:51 -0700 merlyn@stonehenge.com (Randal L. Schwartz)
wrote:

RLS> The theory is that by having a simpler template language, you get
RLS> two benefits:

RLS> You don't have to explain @a vs $a to a web designer, and yet they
RLS> can probably pick up the simpler templating language to edit their own
RLS> templates for common cases.

RLS> If it's starts getting difficult to write in the mini-language, it
RLS> probably means it should have been factored out into model or controller
RLS> code (that is, it's not view code any more).

RLS> This comes from lots of experience with TT.

To append from my own experience...

I've tried templates for web designers, using:

- Mason
- Template Toolkit
- invented syntax (supposedly simpler)
- Javacript-interpreted templates

Eventually the designer has to program with any of them, and some
designers just aren't good at programming. I find it easier to ask the
designer to create an example, convert it into the template toolkit of
choice (with all the loops, conditionals, etc.), and then let the
designer iterate the template further while *carefully* supervising them
to make sure they don't screw it up.

Ted

Similar ThreadsPosted
Template Toolkit and USE June 27, 2008, 9:39 am
Template-Toolkit-2.14 fails make on FC3 August 27, 2005, 9:23 am
Node ToolKit. __Was __ Re:C linked lists in Perl August 2, 2008, 3:14 pm
Template November 19, 2006, 3:40 pm
Template June 15, 2007, 4:35 pm
Looking for GT::CGI and GT::Template April 2, 2008, 10:07 pm
examples using PDF::Template December 7, 2004, 1:50 pm
apache::template July 23, 2005, 12:38 am
Template to tiff November 9, 2005, 7:09 am
Help on the template files May 15, 2006, 8:37 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap