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 fishfry on March 26, 2008, 1:38 am
Please log in for more thread options
I'm starting a little project. I've used TT for the front end before,
but it has some limitations and quirks as I'm sure people know. I was
wondering if anyone can recommend a better templating package.

Posted by Uri Guttman on March 26, 2008, 2:44 am
Please log in for more thread options

f> I'm starting a little project. I've used TT for the front end before,
f> but it has some limitations and quirks as I'm sure people know. I was
f> wondering if anyone can recommend a better templating package.

take a look at Template::Simple. perfect for little projects and even
larger ones. it is easy to learn and use as it only has 4 markups but it
can do almost all you need in a template.

uri

--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training --- http://perlhunter.com/college.html ---------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------

Posted by David Combs on April 21, 2008, 6:40 pm
Please log in for more thread options
Man, would it be nice to have available a macro processor
basically like the one developed in the classic Kernighan
book "Software Tools" (the red, ie fortran, one).

Way back in the 70's, well before Unix (TM) was allowed
outside of AT&T Bell Labs, Kernighan came up with a
very unix-like shell, grep, cat, comm, you name it,
and it got a big following, one branch out of
Lawrence Berkeley Labs (vax) and the other
out of U. of Arizona (Dec 10 & 20), and with
lots of improvements (over the book version) for
a lot of the tools.

(All the tools were written in "Ratfor", a very-C-like language
that was "compiled" into Fortran.)

I paid someone to greatly enhance the macro-processor, but
somehow after Sun came out with "real" unix (bsd+), that
stuff ***stupidly*** lost (by me and by others).

It was far better than the current m4.



Anyway, a simple macro language, where args are passed
by *position* in an arg list (as in normal languages),
very concise, very nice.


Anyone know of such a thing these days?


Thanks,

David



Posted by LesleyB on March 26, 2008, 9:09 am
Please log in for more thread options
> I'm starting a little project. I've used TT for the front end before,
> but it has some limitations and quirks as I'm sure people know. I was
> wondering if anyone can recommend a better templating package.

I've used HTML::Template, Template::Toolkit and am also looking at
mod_perl and Mason but I doubt the latter are what you seek.
Mason seems to be what I want but it seems to be meant for large
sites. Apart from the 'using a sledgehammer to crack a nut' is there
any harm in using it for small projects?
I found Template::Toolkit okay for small projects if a bit quirky.

Regards

L.


Posted by Jim Gibson on March 26, 2008, 1:11 pm
Please log in for more thread options
In article

> I'm starting a little project. I've used TT for the front end before,
> but it has some limitations and quirks as I'm sure people know. I was
> wondering if anyone can recommend a better templating package.

The only one I have used is Text::Template. I like it because it uses
Perl syntax instead of defining a separate language. You insert Perl
expression blocks into your template file surrounded by '{}' or some
other block delimiters, and the values of the block expressions are
substituted into your template to generate the output.

--
Jim Gibson

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

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