Main > Programming > Libraries >

Petal 2.19

Petal 2.19

Sponsored Links

Petal 2.19 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.083 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 815
Date added: 2007-07-31

Petal 2.19 description

Petal is a Perl Template Attribute Language - TAL for Perl!

SYNOPSIS

in your Perl code:

use Petal;
my $template = new Petal (foo.xhtml);
print $template->process (bar => BAZ);

in foo.xhtml

< html xmlns:tal="http://purl.org/petal/1.0/" >
< body tal:content="bar" >Dummy Content< /body >
< /html >

and you get something like:

< html >
< body >BAZ< /body >
< /html >

SUMMARY

Petal is a XML based templating engine that is able to process any kind of XML, XHTML and HTML.

Petal borrows a lot of good ideas from the Zope Page Templates TAL specification, it is very well suited for the creation of WYSIWYG XHTML editable templates.

The idea is to further enforce the separation of logic from presentation. With Petal, graphic designers can use their favorite WYSIWYG editor to easily edit templates without having to worry about the loops and ifs which happen behind the scene.

NAMESPACE

Although this is not mandatory, Petal templates should include use the namespace http://purl.org/petal/1.0/. Example:

< html xml:lang="en"
lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://purl.org/petal/1.0/" >

Blah blah blah...
Content of the file
More blah blah...
< /html >

If you do not specify the namespace, Petal will by default try to use the petal: prefix. However, in all the examples of this POD well use the tal: prefix to avoid too much typing.

Petal 2.19 Screenshot

Advertisements

Petal 2.19 Keywords

Bookmark Petal 2.19

Hyperlink code:
Link for forum:

Petal 2.19 Copyright

WareSeeker periodically updates pricing and software information of Petal 2.19 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 Petal 2.19 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Petal::Cookbook is a Perl module to recipes for building templates with Petal. Free Download
Template::FAQ contains Frequently Asked Questions about the Template Toolkit. Free Download
WriteTarget is a template based text generator. Free Download
phpListPro project is a PHP/mySQL rating TopList professional script. Free Download
Athana is a webserver written entirely in Python. Free Download
Template::Plugins is a Perl module with plugin provider module. Free Download
HTML::Declare is a Perl module for When Template Systems Are Too Huge And Heredocs Too Messy. Free Download
Eidetic is a middleware library for creating database applications in Perl. Free Download