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::Templater 1.4

    Download button

    No screenshots available
    Downloads: 533  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.8/5)
    8 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Mathieu Gagnon | More programs
    Perl Artistic License / FREE
    June 20th, 2008, 03:28 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Text::Templater description

    Text::Templater is a template engine.

    Text::Templater is a template engine.

    SYNOPSIS

    #!/usr/bin/perl
    use Text::Templater;

    my $tpl = new Text::Templater($tagname);
    #Default tagname is "tpl"

    $tpl->setSource($some_template_text);

    #Set the data source...
    $tpl->setData({
    name => ['bob', undef, 'daniel'],
    color => ['red', 'green', 'blue'],
    nested =>
    [
    {lang => ['fr'], numeric => ['un', 'deux', 'trois', 'quatre']},
    {lang => ['en'], numeric => ['one', 'two', 'three', 'four']}
    ]
    });

    #Get the result.
    $result = $tpl->parse() || die $tpl->getError();

    #if you get weird stuff,
    #check the $tpl->getWarnings();

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    template engine | text templater | Perl module | text | templater | template

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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