Petal::Cookbook

Petal::Cookbook is a Perl module to recipes for building templates with Petal.
Download

Petal::Cookbook Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • William McKee
  • Publisher web site:
  • http://search.cpan.org/~wmckee/Petal-Utils-0.06/lib/Petal/Utils.pm

Petal::Cookbook Tags


Petal::Cookbook Description

Petal::Cookbook is a Perl module to recipes for building templates with Petal. Petal::Cookbook is a Perl module to recipes for building templates with Petal.This document contains some examples of Petal template usage. Most of these examples deal with using Petal to generate HTML files from HTML templates.BASICSTemplate locationWhen using Petal for web application development, your templates should not need to be accessible by the webserver. In fact, it could be a security risk if they are available since there may be code or comments which users should not see prior to processing by Petal. Thus, it is recommended to store your templates in a non-web accessible directory. Personally I prefer to place the directory outside of the web root but you could also use permissions or .htaccess files to control access to the directory. This directory path should go into the $Petal::BASE_DIR global setting or the 'base_dir' argument for the new() constructor.Template namingPetal is indifferent about the name of the template files. Personally, I like to name my templates with the .tmpl extension to help myself and designers distinguish templates from static html. Some GUI editors, though, will not open files without a htm/html extension (esp. under Windows). Requirements: · Perl


Petal::Cookbook Related Software