It seems to me that if one is using CGI.pm then one will probably not use Template-Toolkit very often, because their approaches are different.
CGI.pm aims to turn HTML tags into perl functions. Thus Print p('hello') generates the appropriate paragraph tags.
Template-toolkit, on the other hand, aims to leave markup as is and turn perl into markup. For instance, instead of saying in CGI.pm
it appears that one would sayif (condition){ print p('hello'); }
[% IF condition %] <p>hello</p> [% end %]
In cgi.pm, everything, including output, is a perl statement. In template-toolkit, nothing in the template is a perl statement, and all output appears through the template.
In my view, combining the two approaches would be very,very confusing.
Am I correct that those who use CGI.pm to generate a page do not also use template-toolkit at the same time to generate it?
In reply to Re: All Hail the Template Toolkit!
by sierrathedog04
in thread All Hail the Template Toolkit!
by clemburg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |