HTML::CMTemplate

HTML::CMTemplate.pm is a Perl module that can generate text-based content from templates.
Download

HTML::CMTemplate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Chris Monson
  • Publisher web site:
  • http://search.cpan.org/~shiblon/HTML-CMTemplate-0.4.0/CMTemplate.pm

HTML::CMTemplate Tags


HTML::CMTemplate Description

HTML::CMTemplate.pm is a Perl module that can generate text-based content from templates. HTML::CMTemplate.pm is a Perl module that can generate text-based content from templates.SYNOPSIS use HTML::CMTemplate; $t = new HTML::CMTemplate( path => ); $t->import_template( filename => 'file.html.ctpl', # in the paths above packagename => 'theTemplate', importrefs => { myvar => 'hello' }, importclean => { myclean => 'clean!' }, ); theTemplate::cleanup_namespace(); print "Content-type: text/htmlnn"; print theTemplate::output(); # Template syntax is described below -- see that section to get the real # details on how to use this sucker.HTML::CMTemplate 0.4.0A class for generating text-based content from a simple template language. It was inspired by the (as far as I'm concerned, incomplete) HTML::Template module, and was designed to make template output extremely fast by converting a text/html template into a dynamic perl module and then running code from that module. Since the parsing happens only once and the template is converted into Perl code, the output of the template is very fast.It was designed to work with mod_perl and FastCGI and has been the basis for all of the dynamic content on the Orangatango site (http://www.orangatango.com).First release (version 0.1) was February 15, 2001 and was very quiet because it was a proprietary version.As of version 0.2, it is released under the Artistic License. It's a much more feature-rich version as well as being Open Source! For a copy of the Artistic License, see the files that came with your Perl distribution.The code was developed during my time at Orangatango. It has been released as open source with the blessing of the controlling entities there. Requirements: · Perl


HTML::CMTemplate Related Software