Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- George Mpouras
February 21, 2014, 8:49 pm
rate this thread
If you use Template Toolkit I recommend to check out how to include
parts, and how to use macros. In various projects I use macros to build
forms and it makes things very easy. Also common
header/footer/etc. parts can be just included.
John Bokma j3b
Blog: http://johnbokma.com/ Perl Consultancy: http://castleamber.com/
Perl for books: http://johnbokma.com/perl/help-in-exchange-for-books.html
I have some experience with both approaches for HTML-generation[*] and I'd
chose the procedural one over the template-based one any time because it
is easier to use (if you're a programmer), can be used with less work
(by using programming language facilities for building abstractions) and
can result in code which is easier to understand (for the same reason).
[*] Insofar templating goes, only with JSF/ RichFaces together with Java
which might not be a good example of a templating system. OTOH, I did an
informal 'survey' of 'Perl templating systems' some years ago because
they were "Very Recommended" and came to the conclusion that there
weren't any I'd want to use.
- » How do I get "system" to report the correct failure message?
- — Next thread in » PERL Discussions