Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 49.601.593 Times

HTML::LoL 1.3

  Date Added: October 27, 2010  |  Visits: 1.108

HTML::LoL

Report Broken Link
Printer Friendly Version


Product Homepage
Download (91 downloads)



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

Requirements: No special requirements
Platforms: Linux
Keyword: Boolean Construct Hl Html Htmllol Libraries Lol Module Perl Perl Module Pleasing Programming String Tag
Users rating: 0/10

License: Freeware Size: 5.12 KB
USER REVIEWS
More Reviews or Write Review


HTML::LOL RELATED
Libraries  -  HTML::Widgets::NavMenu 1.0001
HTML::Widgets::NavMenu is a Perl module for Generating HTML Navigation Menus. SYNOPSIS use HTML::Widgets::NavMenu; my $nav_menu = HTML::Widgets::NavMenu->new( path_info => "/me/", current_host => "default", hosts => { default => {...
41.98 KB  
Libraries  -  Template::Plugin::MP3::Tag 0.01
Template::Plugin::MP3::Tag is a Perl interface to the MP3::Tag Module. SYNOPSIS [% USE tag = MP3("path_to_mp3_file") %] [% tag.title %] [% tag.album %] # perldoc MP3::Tag for more ideas Template::Plugin::MP3::Tag provides a simple...
4.1 KB  
Libraries  -  HTML::WikiConverter::MediaWiki 0.55
HTML::WikiConverter::MediaWiki is a Perl module used to convert HTML to MediaWiki markup. SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => MediaWiki ); print $wc->html2wiki( $html ); This module contains rules...
11.26 KB  
Libraries  -  HTML::WikiConverter::Dialects 0.61
HTML::WikiConverter::Dialects is a Perl module which contains a tutorial on how to add a dialect. SYNOPSIS # In your dialect module: package HTML::WikiConverter::MySlimWiki; use HTML::WikiConverter -dialect; rule b => { start => **, end...
34.82 KB  
Libraries  -  HTML::WikiConverter::Markdown 0.02
HTML::WikiConverter::Markdown is a Perl module to convert HTML to Markdown markup. SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => Markdown ); print $wc->html2wiki( $html ); This module contains rules for...
8.19 KB  
Libraries  -  HTML::WikiConverter::Oddmuse 0.52
HTML::WikiConverter::Oddmuse is a Perl module that can convert HTML to Oddmuse markup. SYNOPSIS use HTML::WikiConverter; my $wc = new HTML::WikiConverter( dialect => Oddmuse ); print $wc->html2wiki( $html ); This module contains rules for...
6.14 KB  
Libraries  -  HTML::Widgets::Index 0.6
HTML::Widgets::Index is a Perl module for creating web indexes and menus. This module renders the index of a document tree using the data stored in a MySQL database generated by anxova. It has a flexible set of render options that gives the...
65.54 KB  
Libraries  -  HTML::Widgets::DateEntry 1.5
HTML::Widgets::DateEntry is a Perl module that creates date entry widgets for HTML forms. SYNOPSIS use HTML::Widgets::DateEntry; $de = new HTML::Widgets::DateEntry( year => [date_year, $date_year], month => [date_month, $date_month], day...
4.1 KB  
Libraries  -  HTML::Mason::Devel 1.34
HTML::Mason::Devel is a Perl module with Mason Developers Manual. This manual is written for content developers who know HTML and at least a little Perl. The goal is to write, run, and debug Mason components. If you are the webmaster (or...
378.88 KB  
Libraries  -  HTML::Entities::Numbered 0.04
HTML::Entities::Numbered is a Perl module for conversion of numbered HTML entities. SYNOPSIS use HTML::Entities::Numbered; $html = Hi Honey♥; # convert named HTML entities to numbered (decimal) $decimal = name2decimal($html); # Hi...
8 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB