Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    PerlPoint::Template::TT2 0.02

    Download button

    No screenshots available
    Downloads: 416  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jochen Stenzel | More programs
    Perl Artistic License / FREE
    February 16th, 2007, 02:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    PerlPoint::Template::TT2 description

    PerlPoint::Template::TT2 is a beta of a PerlPoint template processor for Template Toolkit 2 layouts.

    PerlPoint::Template::TT2 is a beta of a PerlPoint template processor for Template Toolkit 2 layouts.

    METHODS

    new()

    Parameters:

    class

    The class name.

    Returns: the new object.

    Example:

    # start page
    $result.="nnnn";

    # begin header
    $result.="nnnn";

    # header contents: this was added to the traditional list of template files
    $result.=$me->_processTemplate(join('/', $tdir, $options->{$toc ? 'header_toc_template' : 'header_template'}), $toc ? 1 : $params{page});

    # complete header
    $result.="nnnn";

    # begin body
    $result.="nnnn";

    # now the body contents: start with top part
    $result.=$me->_processTemplate(join('/', $tdir, $options->{$toc ? 'top_toc_template' : 'top_template'}), $toc ? 1 : $params{page});

    # add navigation, if necessary
    $result.=$me->_processTemplate(join('/', $tdir, $options->{$toc ? 'nav_toc_template' : 'nav_template'}), $toc ? 1 : $params{page})
    if exists $options->{$toc ? 'nav_toc_template' : 'nav_template'};

    # include data (for TOCs, make sure not to add a standard TOC if the tree applet is used
    # - this should be more generic in case users use other methods ...)
    $result.=$toc ? $result=~/_toc() : $params{data};

    # add bottom navigation, if necessary
    $result.=$me->_processTemplate(join('/', $tdir, $options->{$toc ? 'nav_toc_template' : 'nav_template'}), $toc ? 1 : $params{page})
    if exists $options->{$toc ? 'nav_toc_template' : 'nav_template'};

    # finally, add the bottom part
    $result.=$me->_processTemplate(join('/', $tdir, $options->{$toc ? 'bottom_toc_template' : 'bottom_template'}), $toc ? 1 : $params{page});

    # close the body
    $result.="nnnn";

    # and complete the page
    $result.="nnnn";
    # build file name
    my $filename=join('', "$options->{targetdir}/$options->{prefix}-", (fileparse($template, qr(.[^.]+)))[0], "-$params{page}$options->{suffix}");
    warn "= PAGE SUPPLEMENT =====> $filenamen";

    # write file
    open(SUPPFILE, ">$filename") or die qq([Fatal] Could not open output file "$filename": $!.n);
    print SUPPFILE $string;
    close(SUPPFILE);
    }
    }

    Requirements:

    · Perl



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    PerlPoint template processor | Template Toolkit layouts | Perl module | PerlPoint::Template: | PerlPoint | template

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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