Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Text::SimpleTemplate 0.36

    Download button

    No screenshots available
    Downloads: 496  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.0/5)
    4 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Taisuke Yamada and Lin Tianshan | More programs
    Perl Artistic License / FREE
    January 29th, 2008, 10:28 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::SimpleTemplate description

    Text::SimpleTemplate is yet another Perl module for template processing.

    Text::SimpleTemplate is yet another Perl module for template processing.

    SYNOPSIS

    use Text::SimpleTemplate;

    $tmpl = new Text::SimpleTemplate; # create processor object
    $tmpl->setq(TEXT => "hello, world"); # export data to template
    $tmpl->load($file); # loads template from named file
    $tmpl->pack(q{TEXT: }); # loads template from in-memory data

    print $tmpl->fill; # prints "TEXT: hello, world"

    This is yet another library 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 is simple. Whenever a block of text surrounded by '< %' and '% >' (or any pair of delimiters you specify) is found, it will be taken as Perl expression, and will be replaced by its evaluated result.

    Major goal of this library is simplicity and speed. While there're many modules for template processing, this module has near raw Perl-code (i.e., "s|xxx|xxx|ge") speed, while providing simple-to-use objective interface.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    template processing | text generation | Perl module | template | processing | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM