Text::PORE 1.02
Sponsored Links
Text::PORE 1.02 Ranking & Summary
File size:
0.032 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
864
Date added:
2007-06-14
Publisher:
Zhengrong Tang
Text::PORE 1.02 description
Text::PORE is a Perl Object Rendering Engine.
pore
intr.v.
1. To read or study carefully and attentively
The American Heritage® Dictionary of the English Language, Fourth Edition
SYNOPSIS
How to use PORE to render Perl objects.
use Text::PORE::Template;
use Text::PORE::Object;
The Perl object to be rendered:
$obj = new Text::PORE::Object(name=>Joe Smith);
@chilren = (
new Text::PORE::Object(name=>John Smith, age=>10, gender=>M),
new Text::PORE::Object(name=>Jack Smith, age=>15, gender=>M),
new Text::PORE::Object(name=>Joan Smith, age=>20, gender=>F),
new Text::PORE::Object(name=>Jim Smith, age=>25, gender=>M),
);
$obj->{children} = @chilren;
The template file (demo.tpl):
Name: < PORE.render attr=name >
Children:
< PORE.list attr=children >
< PORE.render attr=name >, < PORE.render attr=age >, < PORE.if
cond="gender EQ M" >Male< PORE.else >Female< /PORE.if >
< /PORE.list >
The code that renders the object using this template:
#
# create a template
#
$tpl = new Text::PORE::Template(file=>demo.tpl);
#
# render the object using the template
# the result is printed to STDOUT
#
my $fh = new FileHandle();
$fh->open(>& STDOUT);
Text::PORE::render($obj, $tpl, $fh);
$fh->close();
The rendering result:
Name: Joe Smith
Children:
John Smith, 10, Male
Jack Smith, 15, Male
Joan Smith, 20, Female
Jim Smith, 25, Male
pore
intr.v.
1. To read or study carefully and attentively
The American Heritage® Dictionary of the English Language, Fourth Edition
SYNOPSIS
How to use PORE to render Perl objects.
use Text::PORE::Template;
use Text::PORE::Object;
The Perl object to be rendered:
$obj = new Text::PORE::Object(name=>Joe Smith);
@chilren = (
new Text::PORE::Object(name=>John Smith, age=>10, gender=>M),
new Text::PORE::Object(name=>Jack Smith, age=>15, gender=>M),
new Text::PORE::Object(name=>Joan Smith, age=>20, gender=>F),
new Text::PORE::Object(name=>Jim Smith, age=>25, gender=>M),
);
$obj->{children} = @chilren;
The template file (demo.tpl):
Name: < PORE.render attr=name >
Children:
< PORE.list attr=children >
< PORE.render attr=name >, < PORE.render attr=age >, < PORE.if
cond="gender EQ M" >Male< PORE.else >Female< /PORE.if >
< /PORE.list >
The code that renders the object using this template:
#
# create a template
#
$tpl = new Text::PORE::Template(file=>demo.tpl);
#
# render the object using the template
# the result is printed to STDOUT
#
my $fh = new FileHandle();
$fh->open(>& STDOUT);
Text::PORE::render($obj, $tpl, $fh);
$fh->close();
The rendering result:
Name: Joe Smith
Children:
John Smith, 10, Male
Jack Smith, 15, Male
Joan Smith, 20, Female
Jim Smith, 25, Male
Text::PORE 1.02 Screenshot
Text::PORE 1.02 Keywords
PORE
Perl Object Rendering Engine
PORE 1.02
PORE.render
Engine
Perl Object
rendering engine
smith
object
new
name
Perl
gender
Text::PORE
TextPORE
Text::PORE 1.02
Bookmark Text::PORE 1.02
Text::PORE 1.02 Copyright
WareSeeker periodically updates pricing and software information of Text::PORE 1.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Text::PORE 1.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Text::Starfish.pm and starfish is a Perl-based System for Text-Embedded Programming and Preprocessing. Free Download
Object::Trampoline is a Perl module for delay object construction. Free Download
KProf is a visual tool for developers, which displays the execution profiling output generated by code profilers. Free Download
Test::Deep is a Perl module for extremely flexible deep comparison. Free Download
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. Free Download
Template::Plugin::MP3 is a Perl interface to the MP3::Info Module. Free Download
python-observable lets Python developers build loosely coupled object meshes with a complete Observer/Observable implementation. Free Download
python-amarok is a fairly complete amaroK remote control class for Python. Free Download
Latest Software
Popular Software
Favourite Software