Text::Perlate

Template module using Perl as the langauge
Download

Text::Perlate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Leif Pedersen
  • Publisher web site:
  • http://search.cpan.org/~bilbo/

Text::Perlate Tags


Text::Perlate Description

Template module using Perl as the langauge Text::Perlate is a Perl module thaprovides a simple translation system for writing files that are mostly text, TeX, HTML, XML, an email message, etc with some Perl code interspersed. The input files use ] to mark the beginning and end of Perl code. Text outside of these tags is returned without modification (except for the effects of conditional statements or loops contained in surrounding tags of course). PHP users will notice the similarity to the tags used by PHP to separate code from literal text.A template written in this style is called a "perlate". In contrast, "Perlate" is the name of this module.This approach provides the simplicity of using a language you're accustomed to (Perl) for logic, rather than inventing a trimmed-down language. Admittedly that means you must exercise restraint in separating logic and text. However, this approach is faster (in execution) and less bug-prone since it uses a well-developed compiler and language you already know well. Many argue that an unrestrained programmer will find a way to shoot themselves despite the best efforts of the language to prevent it. If you agree, Perlate is for you.SYNOPSIS use Text::Perlate; $Text::Perlate::defaults->{...} = ...; print Text::Perlate::main($options); Requirements: · Perl


Text::Perlate Related Software