HTML::LoL 1.3
Sponsored Links
HTML::LoL 1.3 Ranking & Summary
File size:
0.005 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
844
Date added:
2007-07-05
Publisher:
Bob Glickstein
HTML::LoL 1.3 description
HTML::LoL is a Perl module that can construct HTML from pleasing Perl data structures.
SYNOPSIS
use HTML::LoL;
&hl(sub { print shift },
[body => {bgcolor => white},
[p => Document body, ...], ...]);
This module allows you to use Perl syntax to express HTML. The function hl() converts Perl list-of-list structures into HTML strings.
The first argument to hl() is a callback function thats passed one argument: a fragment of generated HTML. This callback is invoked repeatedly with successive fragments until all the HTML is generated; the callback is responsible for assembling the fragments in the desired output location (e.g., a string or file).
The remaining arguments to hl() are Perl objects representing HTML, as follows:
[TAG, ...]
TAG is a string (the name of an HTML element); remaining list items are any of the forms described herein. Corresponds to < TAG >...< /TAG >. If TAG is an "empty element" according to %HTML::Tagset::emptyElement, then the < /TAG > is omitted.
[TAG => {ATTR1 => VAL1, ATTR2 => VAL2, ...}, ...]
Corresponds to < TAG ATTR1="VAL1" ATTR2="VAL2" ... >...< /TAG >. (As above, < /TAG > is omitted if TAG is an "empty element.") Each ATTR is a string. Each VAL is either a string, in which case the value gets HTML-entity-encoded when copied to the output, or a list reference containing a single string (viz. [VAL]) in which case the value is copied literally.
Finally, for boolean-valued attributes, VAL may be hl_bool(BOOLEAN), where BOOLEAN is a Perl expression. If BOOLEAN is true, the attribute is included in the output; otherwise its omitted.
Any string
Strings are copied verbatim to the output after entity-encoding.
hl_noquote(...)
Suppresses entity-encoding of its arguments.
hl_requote(...)
Reenables entity-encoding of its arguments (use it inside a call to hl_noquote()).
hl_preserve(...)
Normally, HTML::LoL tries to optimize the whitespace in the HTML it emits (without changing the meaning of the HTML). This suppresses that behavior within its arguments.
hl_entity(NAME)
Includes the HTML character-entity named NAME.
The return value of hl() is the result of the last call to the callback function. This means its possible to write
&hl(sub { $accumulator .= shift }, ...)
to have hl() return a string containing the completely rendered HTML.
SYNOPSIS
use HTML::LoL;
&hl(sub { print shift },
[body => {bgcolor => white},
[p => Document body, ...], ...]);
This module allows you to use Perl syntax to express HTML. The function hl() converts Perl list-of-list structures into HTML strings.
The first argument to hl() is a callback function thats passed one argument: a fragment of generated HTML. This callback is invoked repeatedly with successive fragments until all the HTML is generated; the callback is responsible for assembling the fragments in the desired output location (e.g., a string or file).
The remaining arguments to hl() are Perl objects representing HTML, as follows:
[TAG, ...]
TAG is a string (the name of an HTML element); remaining list items are any of the forms described herein. Corresponds to < TAG >...< /TAG >. If TAG is an "empty element" according to %HTML::Tagset::emptyElement, then the < /TAG > is omitted.
[TAG => {ATTR1 => VAL1, ATTR2 => VAL2, ...}, ...]
Corresponds to < TAG ATTR1="VAL1" ATTR2="VAL2" ... >...< /TAG >. (As above, < /TAG > is omitted if TAG is an "empty element.") Each ATTR is a string. Each VAL is either a string, in which case the value gets HTML-entity-encoded when copied to the output, or a list reference containing a single string (viz. [VAL]) in which case the value is copied literally.
Finally, for boolean-valued attributes, VAL may be hl_bool(BOOLEAN), where BOOLEAN is a Perl expression. If BOOLEAN is true, the attribute is included in the output; otherwise its omitted.
Any string
Strings are copied verbatim to the output after entity-encoding.
hl_noquote(...)
Suppresses entity-encoding of its arguments.
hl_requote(...)
Reenables entity-encoding of its arguments (use it inside a call to hl_noquote()).
hl_preserve(...)
Normally, HTML::LoL tries to optimize the whitespace in the HTML it emits (without changing the meaning of the HTML). This suppresses that behavior within its arguments.
hl_entity(NAME)
Includes the HTML character-entity named NAME.
The return value of hl() is the result of the last call to the callback function. This means its possible to write
&hl(sub { $accumulator .= shift }, ...)
to have hl() return a string containing the completely rendered HTML.
HTML::LoL 1.3 Screenshot
HTML::LoL 1.3 Keywords
HTML
LoL
TAG
LoL 1.3
BOOLEAN
VAL
Perl data structures
Perl module
Data Structures
Perl
hl
string
structures
module
data
HTML::LoL
Bookmark HTML::LoL 1.3
HTML::LoL 1.3 Copyright
WareSeeker periodically updates pricing and software information of HTML::LoL 1.3 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 HTML::LoL 1.3 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
stringified perl data structures
perl data structures cookbook
html tags
perl data structures hash
html code
perlane
perl data structures tree
string bikini
la perla
html body html
java data structures
perl modules
query string
perlina handbags
html codes
perl tutorial
string trimmers
data structures and algorithms
Related Software
HTML Objects is a Perl module library for turning HTML tags into Perl objects. Free Download
HTML::Clean module cleans up HTML code for web browsers, not humans. Free Download
HTML::QuickTable is a Perl module to quickly create fairly complex HTML tables. Free Download
MyCMS perl module provides the MN::CMS Perl module used by the MyCMS. Free Download
Blatte::HTML is a Perl module that contains tools for generating HTML with Blatte. Free Download
Chart::Plot is a Perl module to plot two dimensional data in an image. Free Download
Pod::Hlp is a Perl module that can convert POD data to formatted VMS HLP Help module text. Free Download
PDF::FromHTML::Twig is a Perl module with PDF::FromHTML guts. Free Download
Latest Software
Popular Software
Favourite Software