Text::ScriptTemplate

Text::ScriptTemplate is a standalone ASP/JSP/PHP-style template processor.
Download

Text::ScriptTemplate Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Taisuke Yamada
  • Publisher web site:
  • http://search.cpan.org/~taiy/Text-ScriptTemplate-0.08/ScriptTemplate.pm

Text::ScriptTemplate Tags


Text::ScriptTemplate Description

Text::ScriptTemplate is a standalone ASP/JSP/PHP-style template processor. Text::ScriptTemplate is a standalone ASP/JSP/PHP-style template processor.SYNOPSIS use Text::ScriptTemplate; $text = . # - also supports variable expansion < % } % > EOF $tmpl = new Text::ScriptTemplate; # create processor object $tmpl->setq(TEXT => "hello, world"); # export data to template # load, fill, and print expanded result in single action print $tmpl->pack($text)->fill;This is a successor of Text::SimpleTemplate, a module for template- based text generation.Template-based text generation is a way to separate program code and data, so non-programmer can control final result (like HTML) as desired without tweaking the program code itself. By doing so, jobs like website maintenance is much easier because you can leave program code unchanged even if page redesign was needed.The idea of this module is simple. Whenever a block of text surrounded by '' (or any pair of delimiters you specify) is found, it will be taken as Perl expression, and will be handled specially by template processing engine. With this module, Perl script and text can be intermixed closely.Major goal of this library is to provide support of powerful PHP-style template with smaller resource. This is useful when PHP, Java/JSP, or Apache::ASP is overkill, but their template style is still desired. Requirements: · Perl


Text::ScriptTemplate Related Software