mscerts.net
 
Adaptive Technologies
Adobe AIR Apps
Artistic Software
Communications
Database
Desktop Environment
Documentation
Education
Games
Home Automation
Information Management
Internet
Multimedia
Office
Printing
Programming
Religion
Science
Science and Engineering
Security
System
Terminals
Text Editing&Processing
Utilities
 
 
myGengo 1.2.0
corejet.jira 1.0 Alpha 1
jsoncmd 0.0
correct_pycountry 0.12.2
Monsters 1.0
corejet.core 1.0 Alpha 1
Scope::Container::DBI 0.04
DBIx::DataModel 1.27
Word Golf 0.2.1
Plack::Middleware::LogWarn 0.001002
 
 
 

HTML::Template::HTX 0.07

Handle HTML Extension template (.htx) files

The HTML::Template::HTX module reads and outputs HTML Extension template (.htx) files, which enable you to seperate your Perl code from HTML code.

To use a .htx template file in your Perl script, basically follow these steps:

 1. Create a new HTML::Template::HTX object.
 2. Optionally define some parameters, and output the header of the template.
 3. Optionally change or define some parameters, and output the detail section. This step is optionally repeated a number of times, depending on the data you're processing.
 4. Optionally change or define some parameters, and output the footer of the template.
 5. Close the template file, or destroy the HTML::Template::HTX object.

If you don't have any repeated data, then you can skip steps 2 and 3, and just use print_footer to output the whole template file at once. If you have multiple sets of repeated data, then you should probably follow a slightly altered schema (see the detail_section method).

SYNOPSIS

 use HTML::Template::HTX;

 $htx = HTML::Template::HTX->new('template.htx') or die "Oops!";

 $htx->param('counter' => 0);
 $htx->print_header(1);

 foreach(qw(I used to care but Things Have Changed)) {
 $htx->param(
 'counter' => $htx->param('counter')+1,
 'Name' => $_,
 );
 $htx->print_detail;
 }

 $htx->print_footer;
 $htx->close;


template.htx

 < HTML >< HEAD >< TITLE >Sample results< /TITLE >

 < /HEAD >< BODY >

 < H2 >Sample results:< /H2 >

 < �gindetail% >
 < %counter% >. < %Name% >< BR >
 < %enddetail% >

 < /BODY >< /HTML >

Requirements:

· Perl

  Other
-   SquidGuard Manager 1.2
-   Funifs 1.1
-   Devel::FastProf 0.08
-   Convert::Moji 0.01
-   Config::GitLike 1.04
-   Class::Data::Reloadable 0.04
-   CatalystX::ListFramework 0.5
-   Capture::Tiny 0.08
-   CGI::Search 0.5
-   Apache::TieBucketBrigade 0.05
-   Unicode::LineBreak 1.007.520
-   Acme::UNIVERSAL::cannot 0.01
-   Acme::MorseComments 1.00
-   TagPy 0.94.8
-   Flask-Cache 0.2
-   web2pyrecipe 1.0
-   pyzipcode 0.3
-   MongoDBPipe 0.1.0
-   AppDispatch 0.3.0
-   ijson 0.2.0
 
 
                mscerts.net