CAM::Template

Clotho-style search/replace HTML templates
Download

CAM::Template Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Clotho Advanced Media, Inc.
  • Publisher web site:
  • http://search.cpan.org/~clotho/

CAM::Template Tags


CAM::Template Description

Clotho-style search/replace HTML templates CAM::Template is a Perl module intended to replace Clotho's traditional ::PARAM:: syntax with an object-oriented API. This syntax is overrideable by subclasses. See the last section of this documentation for an explanation of the default syntax.We recommend that you DO NOT use this module unless you have a good reason. The other CPAN templating modules, like HTML::Template and Template::Toolkit) are better maintained than this one. See http://perl.apache.org/docs/tutorials/tmpl/comparison/comparison.html for an excellent discussion of the various templating approaches.So why does this module exist? Legacy, mostly. A ton of HTML was written in this templating language. So, we keep this module in good condition. Additionally, we believe it's unique in the Perl community in that it has a reconfigurable template syntax. That's worth a little, we think.SYNOPSIS use CAM::Template; my $tmpl = new CAM::Template($tmpldir . "/main_tmpl.html"); $tmpl->addParams(url => "http://foo.com/", date => localtime(), name => "Carol"); $tmpl->addParams(\%more_params); $tmpl->setLoop("birthdaylist", name => "Eileen", date => "Sep 12"); $tmpl->addLoop("birthdaylist", name => "Chris", date => "Oct 13"); $tmpl->addLoop("birthdaylist", ); print "Content-Type: text/html\n\n"; $tmpl->print(); Requirements: · Perl


CAM::Template Related Software