Main > Programming > Libraries >

HTML::LoL 1.3

HTML::LoL 1.3

Sponsored Links

HTML::LoL 1.3 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
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.

HTML::LoL 1.3 Screenshot

Advertisements

HTML::LoL 1.3 Keywords

Bookmark HTML::LoL 1.3

Hyperlink code:
Link for forum:

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

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
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