html mailto
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 2224
HTML::Manipulator 0.07
HTML::Manipulator is a Perl extension for manipulating HTML files. more>>
HTML::Manipulator is a Perl extension for manipulating HTML files.
SYNOPSIS
use HTML::Manipulator;
my $html = {
_content => Slashdot,
href=>http://www.slashdot.org/ }
);
# extract a tag content
my $content = HTML::Manipulator::extract_content($html, link);
# extract a tag content and attributes
my $tag = HTML::Manipulator::extract($html, link);
# returns a hash ref like
# { href => http://www.google.com, id => link, _content => Google }
This module manipulates of the contents of HTML files. It can query and replace the content or attributes of any HTML tag.
The advertised usage pattern is to update static HTML files.
<<lessSYNOPSIS
use HTML::Manipulator;
my $html = {
_content => Slashdot,
href=>http://www.slashdot.org/ }
);
# extract a tag content
my $content = HTML::Manipulator::extract_content($html, link);
# extract a tag content and attributes
my $tag = HTML::Manipulator::extract($html, link);
# returns a hash ref like
# { href => http://www.google.com, id => link, _content => Google }
This module manipulates of the contents of HTML files. It can query and replace the content or attributes of any HTML tag.
The advertised usage pattern is to update static HTML files.
Download (0.012MB)
Added: 2006-12-05 License: Perl Artistic License Price:
1054 downloads
HTML::Mail 0.02_05
HTML::Mail is a Perl extension for sending emails with embedded HTML and media. more>>
HTML::Mail is a Perl extension for sending emails with embedded HTML and media.
SYNOPSIS
use HTML::Mail;
### initialisation
my $html_mail = HTML::Mail->new(
HTML => http://www.cpan.org,
Text => This is the text representation of the webpage http://www.cpan.org,
From => me@myhost.org,
To => you@yourhost.org,
Subject => CPAN webpage);
### Send the email ("inherited" from MIME::Lite)
$html_mail->send();
#### Remove text representation
$html_mail->set_Text();
### Rebuild the message and send
$html_mail->build->send;
### Serialise to file for later reuse
$html_mail->dump_file(/tmp/cpan_mail.data);
### Restore from file
my $restored = HTML::Mail->restore_file(/tmp/cpan_mail.data);
HTML::Mail is supposed to help with the task of sending emails with HTML and images (or other media) embedded or externally linked. It uses MIME::Lite for all MIME related jobs, HTML::Parser to find related files and change the URIs and LWP::UserAgent to retrieve the related files.
Email can be multipart/alternative if both HTML and Text content exist and multipart/related if there is only HTML content.
If all you want is to send text-only email, you probably wont find this module useful at all, or at best a huge overkill.
<<lessSYNOPSIS
use HTML::Mail;
### initialisation
my $html_mail = HTML::Mail->new(
HTML => http://www.cpan.org,
Text => This is the text representation of the webpage http://www.cpan.org,
From => me@myhost.org,
To => you@yourhost.org,
Subject => CPAN webpage);
### Send the email ("inherited" from MIME::Lite)
$html_mail->send();
#### Remove text representation
$html_mail->set_Text();
### Rebuild the message and send
$html_mail->build->send;
### Serialise to file for later reuse
$html_mail->dump_file(/tmp/cpan_mail.data);
### Restore from file
my $restored = HTML::Mail->restore_file(/tmp/cpan_mail.data);
HTML::Mail is supposed to help with the task of sending emails with HTML and images (or other media) embedded or externally linked. It uses MIME::Lite for all MIME related jobs, HTML::Parser to find related files and change the URIs and LWP::UserAgent to retrieve the related files.
Email can be multipart/alternative if both HTML and Text content exist and multipart/related if there is only HTML content.
If all you want is to send text-only email, you probably wont find this module useful at all, or at best a huge overkill.
Download (0.015MB)
Added: 2006-10-23 License: Perl Artistic License Price:
1096 downloads
HTML::Mason 1.32
HTML::Mason is a powerful Perl-based web site development and delivery engine. more>>
HTML::Mason is a powerful Perl-based web site development and delivery engine. With Mason you can embed Perl code in your HTML and construct pages from shared, reusable components.
Mason solves the common problems of site development: caching, debugging, templating, maintaining development and production sites, and more.
Mason is 100% free and open source. Although it can be used from CGI or even stand-alone, it is optimally designed for use with two other open source technologies: mod_perl and Apache.
<<lessMason solves the common problems of site development: caching, debugging, templating, maintaining development and production sites, and more.
Mason is 100% free and open source. Although it can be used from CGI or even stand-alone, it is optimally designed for use with two other open source technologies: mod_perl and Apache.
Download (MB)
Added: 2006-01-26 License: Artistic License Price:
1366 downloads
HTML::FormatNroff 0.11
HTML::FormatNroff is a Perl module that can format HTML as nroff man page. more>>
HTML::FormatNroff is a Perl module that can format HTML as nroff man page.
SYNOPSIS
require HTML::FormatNroff;
$html = parse_htmlfile("test.html");
$format_nroff = new HTML::FormatNroff(name => trial,
project => MyProject);
print $formatter->format($html);
The HTML::FormatNroff is a formatter that outputs nroff source for the nroff text processor, using man macros, and tbl commands for table processing.
The result of using the formatter must be processed as follows, when directing output to the screen (assume output is in the file "text.nroff"):
tbl -TX text.nroff | nroff -man | col
If the output is to be printed, on an laser printer for example, a command similar to the following must be used:
tbl -TX text.nroff | nroff -man -Tlj | lpr
Meta tags may be placed in the HTML so that portions of the HTML will be ignored and not processed. Content between the tags
< META NAME="nroff-control" CONTENT="ignore_start" >
< META NAME="nroff-control" CONTENT="ignore_end" >
will be ignored. In the BODY META is not supported, but DIV may be used as follows:
< DIV TYPE="NROFF_IGNORE" >
< /DIV >
In both the META and DIV uses, case is ignored.
<<lessSYNOPSIS
require HTML::FormatNroff;
$html = parse_htmlfile("test.html");
$format_nroff = new HTML::FormatNroff(name => trial,
project => MyProject);
print $formatter->format($html);
The HTML::FormatNroff is a formatter that outputs nroff source for the nroff text processor, using man macros, and tbl commands for table processing.
The result of using the formatter must be processed as follows, when directing output to the screen (assume output is in the file "text.nroff"):
tbl -TX text.nroff | nroff -man | col
If the output is to be printed, on an laser printer for example, a command similar to the following must be used:
tbl -TX text.nroff | nroff -man -Tlj | lpr
Meta tags may be placed in the HTML so that portions of the HTML will be ignored and not processed. Content between the tags
< META NAME="nroff-control" CONTENT="ignore_start" >
< META NAME="nroff-control" CONTENT="ignore_end" >
will be ignored. In the BODY META is not supported, but DIV may be used as follows:
< DIV TYPE="NROFF_IGNORE" >
< /DIV >
In both the META and DIV uses, case is ignored.
Download (0.012MB)
Added: 2007-08-11 License: Perl Artistic License Price:
805 downloads
HTML::Toc 0.21
HTML::Toc module can generate, insert and update HTML Table of Contents. more>>
HTML::Toc module can generate, insert and update HTML Table of Contents.
The HTML::Toc consists out of the following packages:
HTML::Toc
HTML::TocGenerator
HTML::TocInsertor
HTML::TocUpdator
HTML::Toc is the object which will eventually hold the Table of Contents. HTML::TocGenerator does the actual generation of the ToC. HTML::TocInsertor handles the insertion of the ToC in the source. HTML::TocUpdator takes care of updating previously inserted ToCs.
HTML::Parser is the base object of HTML::TocGenerator, HTML::TocInsertor and HTML::TocUpdator. Each of these objects uses its predecessor as its ancestor, as shown in the UML diagram underneath:
+---------------------+
| HTML::Parser |
+---------------------+
+---------------------+
| +parse() |
| +parse_file() |
+----------+----------+
/_
|
+----------+----------+ +-----------+
| HTML::TocGenerator + - - - - - -+ HTML::Toc |
+---------------------+ +-----------+
+---------------------+ +-----------+
| +extend() | | +clear() |
| +extendFromFile() | | +format() |
| +generate() | +-----+-----+
| +generateFromFile() | :
+----------+----------+ :
/_ :
| :
+----------+----------+ :
| HTML::TocInsertor + - - - - - - - - -+
+---------------------+ :
+---------------------+ :
| +insert() | :
| +insertIntoFile() | :
+----------+----------+ :
/_ :
| :
+----------+----------+ :
| HTML::TocUpdator + - - - - - - - - -+
+---------------------+
+---------------------+
| +insert() |
| +insertIntoFile() |
| +update() |
| +updateFile() |
+---------------------+
When generating a ToC youll have to decide which object you want to use:
TocGenerator:
for generating a ToC without inserting the ToC into the source
TocInsertor:
for generating a ToC and inserting the ToC into the source
TocUpdator:
for generating and inserting a ToC, removing any previously inserted ToC elements
Thus in tabular view, each object is capable of:
generating inserting updating
---------------------------------
TocGenerator X
TocInsertor X X
TocUpdator X X X
<<lessThe HTML::Toc consists out of the following packages:
HTML::Toc
HTML::TocGenerator
HTML::TocInsertor
HTML::TocUpdator
HTML::Toc is the object which will eventually hold the Table of Contents. HTML::TocGenerator does the actual generation of the ToC. HTML::TocInsertor handles the insertion of the ToC in the source. HTML::TocUpdator takes care of updating previously inserted ToCs.
HTML::Parser is the base object of HTML::TocGenerator, HTML::TocInsertor and HTML::TocUpdator. Each of these objects uses its predecessor as its ancestor, as shown in the UML diagram underneath:
+---------------------+
| HTML::Parser |
+---------------------+
+---------------------+
| +parse() |
| +parse_file() |
+----------+----------+
/_
|
+----------+----------+ +-----------+
| HTML::TocGenerator + - - - - - -+ HTML::Toc |
+---------------------+ +-----------+
+---------------------+ +-----------+
| +extend() | | +clear() |
| +extendFromFile() | | +format() |
| +generate() | +-----+-----+
| +generateFromFile() | :
+----------+----------+ :
/_ :
| :
+----------+----------+ :
| HTML::TocInsertor + - - - - - - - - -+
+---------------------+ :
+---------------------+ :
| +insert() | :
| +insertIntoFile() | :
+----------+----------+ :
/_ :
| :
+----------+----------+ :
| HTML::TocUpdator + - - - - - - - - -+
+---------------------+
+---------------------+
| +insert() |
| +insertIntoFile() |
| +update() |
| +updateFile() |
+---------------------+
When generating a ToC youll have to decide which object you want to use:
TocGenerator:
for generating a ToC without inserting the ToC into the source
TocInsertor:
for generating a ToC and inserting the ToC into the source
TocUpdator:
for generating and inserting a ToC, removing any previously inserted ToC elements
Thus in tabular view, each object is capable of:
generating inserting updating
---------------------------------
TocGenerator X
TocInsertor X X
TocUpdator X X X
Download (0.042MB)
Added: 2007-08-15 License: Perl Artistic License Price:
800 downloads
HTML::Latex 1.1
HTML::Latex is a Perl module that creates a Latex file from an HTML file. more>>
HTML::Latex is a Perl module that creates a Latex file from an HTML file.
SYNOPSIS
use HTML::Latex
my $parser = new HTML::Latex($conffile);
$parser->set_option(%options);
$parser->add_package(@packages);
$parser->ban_tag(@banned);
$parser->set_log($logfile);
# Option 1:
foreach my $uri (@ARGV) {
my ($htmlfile,$latexfile) = $parser->html2latex($uri);
}
# Option 2:
foreach my $uri (@ARGV) {
my $in = IO::File->new("< $uri");
my $out = IO::File->new("> $uri.tex");
$parser->html2latex($in,$out);
}
# Option 3:
my $html_string = join("n",);
my $tex_string = $parser->parse_string($html_string,1);
# Option 4:
my $html_string = join("",@ARGV);
my $tex_string = $parser->parse_string($html_string);
print $tex_string;
This class is used to create a text file in Latex format from a file in HTML format. Use the class as follows:
1. Create a new HTML::Latex object.
2. Override any options using set_option(), add_package(), ban_tag(), or set_log().
3. Run html2latex() on a file or URL.
4. Do whatever you want with the filename that was returned.
<<lessSYNOPSIS
use HTML::Latex
my $parser = new HTML::Latex($conffile);
$parser->set_option(%options);
$parser->add_package(@packages);
$parser->ban_tag(@banned);
$parser->set_log($logfile);
# Option 1:
foreach my $uri (@ARGV) {
my ($htmlfile,$latexfile) = $parser->html2latex($uri);
}
# Option 2:
foreach my $uri (@ARGV) {
my $in = IO::File->new("< $uri");
my $out = IO::File->new("> $uri.tex");
$parser->html2latex($in,$out);
}
# Option 3:
my $html_string = join("n",);
my $tex_string = $parser->parse_string($html_string,1);
# Option 4:
my $html_string = join("",@ARGV);
my $tex_string = $parser->parse_string($html_string);
print $tex_string;
This class is used to create a text file in Latex format from a file in HTML format. Use the class as follows:
1. Create a new HTML::Latex object.
2. Override any options using set_option(), add_package(), ban_tag(), or set_log().
3. Run html2latex() on a file or URL.
4. Do whatever you want with the filename that was returned.
Download (0.047MB)
Added: 2006-09-21 License: Perl Artistic License Price:
1133 downloads
mailto.php 1.4.1
mailto.php reclaims HTML mailto: links from spammers e-mail address harvesters. more>>
mailto.php reclaims HTML mailto: links from spammers e-mail address harvesters. Using JavaScript, it creates a link to an e-mail address while keeping the actual address obfuscated.
mailto.php turns this:
< a href="mailto:user@host.com">user@host.com< /a>
into
< script language="JavaScript"
type="text/javascript">eval(unescape(%76%61%72%20%61%64%64%72%20%3
d%20%27%25%36%61%25%36%66%25%36%34%25%37%32%25%36%35%25%36%63%25%36%63%25%34%30%
25%37%33%25%37%30%25%36%66%25%36%34%25%32%65%25%37%35%25%36%62%25%32%65%25%36%65
%25%36%35%25%37%34%27%3b%76%61%72%20%73%74%72%69%6e%67%20%3d%20%27%25%36%61%25%3
6%66%25%36%34%25%37%32%25%36%35%25%36%63%25%36%63%25%34%30%25%37%33%25%37%30%25%
36%66%25%36%34%25%32%65%25%37%35%25%36%62%25%32%65%25%36%65%25%36%35%25%37%34%27
%3b%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%20%68%72%65%66%3d%2
2%6d%61%69%6c%74%6f%3a%27%20%2b%20%75%6e%65%73%63%61%70%65%28%61%64%64%72%29%20%
2b%20%27%22%3e%27%20%2b%20%75%6e%65%73%63%61%70%65%28%73%74%72%69%6e%67%29%20%2b
%20%27%3c%2f%61%3e%27%29%3b));< /script>
Which is pretty hard for e-mail gathering programs to decode.
mailto.php has been tested in all major browsers, including Mozilla, NS4, IE, Opera and Konqueror.
<<lessmailto.php turns this:
< a href="mailto:user@host.com">user@host.com< /a>
into
< script language="JavaScript"
type="text/javascript">eval(unescape(%76%61%72%20%61%64%64%72%20%3
d%20%27%25%36%61%25%36%66%25%36%34%25%37%32%25%36%35%25%36%63%25%36%63%25%34%30%
25%37%33%25%37%30%25%36%66%25%36%34%25%32%65%25%37%35%25%36%62%25%32%65%25%36%65
%25%36%35%25%37%34%27%3b%76%61%72%20%73%74%72%69%6e%67%20%3d%20%27%25%36%61%25%3
6%66%25%36%34%25%37%32%25%36%35%25%36%63%25%36%63%25%34%30%25%37%33%25%37%30%25%
36%66%25%36%34%25%32%65%25%37%35%25%36%62%25%32%65%25%36%65%25%36%35%25%37%34%27
%3b%64%6f%63%75%6d%65%6e%74%2e%77%72%69%74%65%28%27%3c%61%20%20%68%72%65%66%3d%2
2%6d%61%69%6c%74%6f%3a%27%20%2b%20%75%6e%65%73%63%61%70%65%28%61%64%64%72%29%20%
2b%20%27%22%3e%27%20%2b%20%75%6e%65%73%63%61%70%65%28%73%74%72%69%6e%67%29%20%2b
%20%27%3c%2f%61%3e%27%29%3b));< /script>
Which is pretty hard for e-mail gathering programs to decode.
mailto.php has been tested in all major browsers, including Mozilla, NS4, IE, Opera and Konqueror.
Download (0.010MB)
Added: 2005-09-28 License: GPL (GNU General Public License) Price:
1493 downloads
HTML::Sanitizer 0.04
HTML::Sanitizer is a HTML Sanitizer. more>>
HTML::Sanitizer is a HTML Sanitizer.
SYNOPSIS
my $safe = new HTML::Sanitizer;
$safe->permit_only(
qw/ strong em /,
a => {
href => qr/^(?:http|ftp):/,
title => 1,
},
img => {
src => qr/^(?:http|ftp):/,
alt => 1,
},
b => HTML::Element->new(strong),
);
$sanitized = $safe->filter_html_fragment($evil_html);
# or
my $tree = HTML::TreeBuilder->new->parse_file($filename);
$safe->sanitize_tree($tree);
ABSTRACT
This module acts as a filter for HTML. It is not a validator, though it might be possible to write a validator-like tool with it. Its intended to strip out unwanted HTML elements and attributes and leave you with non-dangerous HTML code that you should be able to trust.
<<lessSYNOPSIS
my $safe = new HTML::Sanitizer;
$safe->permit_only(
qw/ strong em /,
a => {
href => qr/^(?:http|ftp):/,
title => 1,
},
img => {
src => qr/^(?:http|ftp):/,
alt => 1,
},
b => HTML::Element->new(strong),
);
$sanitized = $safe->filter_html_fragment($evil_html);
# or
my $tree = HTML::TreeBuilder->new->parse_file($filename);
$safe->sanitize_tree($tree);
ABSTRACT
This module acts as a filter for HTML. It is not a validator, though it might be possible to write a validator-like tool with it. Its intended to strip out unwanted HTML elements and attributes and leave you with non-dangerous HTML code that you should be able to trust.
Download (0.009MB)
Added: 2007-07-11 License: Perl Artistic License Price:
835 downloads
HTML::Simple 0.4
HTML::Simple is a simple, dependency free module for generating HTML (and XML). more>>
HTML::Simple is a simple, dependency free module for generating HTML (and XML).
SYNOPSIS
Note: It turns out that TOMC owns the HTML::Simple namespace so Ive moved development of this module to HTML::Tiny. Please use HTML::Tiny in preference to this module.
use HTML::Simple;
my $h = HTML::Simple->new;
# Generate a simple page
print $h->html(
[
$h->head( $h->title( Sample page ) ),
$h->body(
[
$h->h1( { class => main }, Sample page ),
$h->p( Hello, World, { class => detail }, Second para )
]
)
]
);
# Outputs
< html>
< head>
< title>Sample page< /title>
< /head>
< body>
< h1 class="main">Sample page< /h1>
< p>Hello, World< /p>
< p class="detail">Second para< /p>
< /body>
< /html>
<<lessSYNOPSIS
Note: It turns out that TOMC owns the HTML::Simple namespace so Ive moved development of this module to HTML::Tiny. Please use HTML::Tiny in preference to this module.
use HTML::Simple;
my $h = HTML::Simple->new;
# Generate a simple page
print $h->html(
[
$h->head( $h->title( Sample page ) ),
$h->body(
[
$h->h1( { class => main }, Sample page ),
$h->p( Hello, World, { class => detail }, Second para )
]
)
]
);
# Outputs
< html>
< head>
< title>Sample page< /title>
< /head>
< body>
< h1 class="main">Sample page< /h1>
< p>Hello, World< /p>
< p class="detail">Second para< /p>
< /body>
< /html>
Download (0.010MB)
Added: 2007-07-04 License: Perl Artistic License Price:
843 downloads
HTML::YaTmpl 1.8
HTML::YaTmpl is yet another template processor. more>>
HTML::YaTmpl is yet another template processor.
SYNOPSIS
use HTML::YaTmpl;
my $t=HTML::YaTmpl->new( file=>template.tmpl );
$t->evaluate( key1=>$value1,
key2=>[$val21, $val22, ...]
... );
$t->evaluate_to_file( $outputfilename,
key1=>$value1,
key2=>[$val21, $val22, ...]
... );
ABSTRACT
HTML::YaTmpl aims mainly to provide a HTML template processor that saves the template writer typing.
There are general template processors like Text::Template and tools to embed perl in HTML like HTML::Embperl or HTML template processors like HTML::Template. Why have I decided to start yet another? Well, Text::Template is not really convenient when it comes to process repeating data records like HTML tables. With HTML::Embperl no professional "WEB Designer" will be able to "enhance" the pages. And HTML::Template enforces a strict division of design and programming. Thus, it enforces changes to the programming logic even if you only want to exchange a long number like 2835067264068365493 with a more human readable 2,835,067,264,068,365,493.
HTML::YaTmpl attempts to make simple things easy but complexity feasible.
<<lessSYNOPSIS
use HTML::YaTmpl;
my $t=HTML::YaTmpl->new( file=>template.tmpl );
$t->evaluate( key1=>$value1,
key2=>[$val21, $val22, ...]
... );
$t->evaluate_to_file( $outputfilename,
key1=>$value1,
key2=>[$val21, $val22, ...]
... );
ABSTRACT
HTML::YaTmpl aims mainly to provide a HTML template processor that saves the template writer typing.
There are general template processors like Text::Template and tools to embed perl in HTML like HTML::Embperl or HTML template processors like HTML::Template. Why have I decided to start yet another? Well, Text::Template is not really convenient when it comes to process repeating data records like HTML tables. With HTML::Embperl no professional "WEB Designer" will be able to "enhance" the pages. And HTML::Template enforces a strict division of design and programming. Thus, it enforces changes to the programming logic even if you only want to exchange a long number like 2835067264068365493 with a more human readable 2,835,067,264,068,365,493.
HTML::YaTmpl attempts to make simple things easy but complexity feasible.
Download (0.041MB)
Added: 2007-07-02 License: Perl Artistic License Price:
844 downloads
HTML::TableTiler 1.21
HTML::TableTiler can easily generates complex graphic styled HTML tables. more>>
HTML::TableTiler can easily generates complex graphic styled HTML tables.
HTML::TableTiler uses a minimum HTML table as a tile to generate a complete HTML table from a bidimensional array of data. It can easily produce simple or complex graphic styled tables with minimum effort and maximum speed.
Think about the table tile as a sort of tile that automatically expands itself to contain the whole data. You can control the final look of a table by choosing either the HORIZONTAL and the VERTICAL tiling mode among: PULL, TILE and TRIM.
The main advantages to use it are:
automatic table generation
Pass only a bidimensional array of data to generate a complete HTML table. No worry to decide in advance the quantity of cells (or rows) in the table.
complex graphic patterns generation without coding
Just prepare a simple table tile in your preferred WYSIWYG HTML editor and let the module do the job for you.
simple to maintain
You can indipendently change the table tile or the code, and everything will go as you would expect.
<<lessHTML::TableTiler uses a minimum HTML table as a tile to generate a complete HTML table from a bidimensional array of data. It can easily produce simple or complex graphic styled tables with minimum effort and maximum speed.
Think about the table tile as a sort of tile that automatically expands itself to contain the whole data. You can control the final look of a table by choosing either the HORIZONTAL and the VERTICAL tiling mode among: PULL, TILE and TRIM.
The main advantages to use it are:
automatic table generation
Pass only a bidimensional array of data to generate a complete HTML table. No worry to decide in advance the quantity of cells (or rows) in the table.
complex graphic patterns generation without coding
Just prepare a simple table tile in your preferred WYSIWYG HTML editor and let the module do the job for you.
simple to maintain
You can indipendently change the table tile or the code, and everything will go as you would expect.
Download (0.008MB)
Added: 2006-07-28 License: Perl Artistic License Price:
1184 downloads
HTML::GenToc 2.30
HTML::GenToc is a Perl module that generate a Table of Contents for HTML documents. more>>
HTML::GenToc is a Perl module that generate a Table of Contents for HTML documents.
SYNOPSIS
use HTML::GenToc;
# create a new object
my $toc = new HTML::GenToc();
my $toc = new HTML::GenToc(title=>"Table of Contents",
toc=>$my_toc_file,
toc_entry=>{
H1=>1,
H2=>2
},
toc_end=>{
H1=>/H1,
H2=>/H2
}
);
# add further arguments
$toc->args(toc_tag=>"BODY",
toc_tag_replace=>0,
);
# generate anchors for a file
$toc->generate_anchors(infile=>$html_file,
overwrite=>0,
);
# generate a ToC from a file
$toc->generate_toc(infile=>$html_file,
footer=>$footer_file,
header=>$header_file
);
HTML::GenToc generates anchors and a table of contents for HTML documents. Depending on the arguments, it will insert the information it generates, or output to a string, a separate file or STDOUT.
While it defaults to taking H1 and H2 elements as the significant elements to put into the table of contents, any tag can be defined as a significant element. Also, it doesnt matter if the input HTML code is complete, pure HTML, one can input pseudo-html or page-fragments, which makes it suitable for using on templates and HTML meta-languages such as WML.
Also included in the distrubution is hypertoc, a script which uses the module so that one can process files on the command-line in a user-friendly manner.
<<lessSYNOPSIS
use HTML::GenToc;
# create a new object
my $toc = new HTML::GenToc();
my $toc = new HTML::GenToc(title=>"Table of Contents",
toc=>$my_toc_file,
toc_entry=>{
H1=>1,
H2=>2
},
toc_end=>{
H1=>/H1,
H2=>/H2
}
);
# add further arguments
$toc->args(toc_tag=>"BODY",
toc_tag_replace=>0,
);
# generate anchors for a file
$toc->generate_anchors(infile=>$html_file,
overwrite=>0,
);
# generate a ToC from a file
$toc->generate_toc(infile=>$html_file,
footer=>$footer_file,
header=>$header_file
);
HTML::GenToc generates anchors and a table of contents for HTML documents. Depending on the arguments, it will insert the information it generates, or output to a string, a separate file or STDOUT.
While it defaults to taking H1 and H2 elements as the significant elements to put into the table of contents, any tag can be defined as a significant element. Also, it doesnt matter if the input HTML code is complete, pure HTML, one can input pseudo-html or page-fragments, which makes it suitable for using on templates and HTML meta-languages such as WML.
Also included in the distrubution is hypertoc, a script which uses the module so that one can process files on the command-line in a user-friendly manner.
Download (0.043MB)
Added: 2006-06-16 License: Perl Artistic License Price:
1225 downloads
HTML::EP
HTML::EP is a system for embedding Perl into HTML. more>>
HTML::EP is a system for embedding Perl into HTML.
SYNOPSIS
< html >< head >< title >CGI-Env< /title >< /head >
< ep-comment >
This is an HTML document. You see. Perhaps you wonder about
the unknown HTML tags like ep-comment above? They are part
of the EP system. For example, this comment section will
be removed and you wont see it in your browser.
< /ep-comment >
< ep-perl >
# This is an example of embedding Perl into the page.
# We create a variable called time, containing the current
# time. This variable will be used below.
my $self = $_;
$self->{time} = localtime(time());
; # Return an empty string; result becomes embedded into the
# HTML page
< /ep-perl >
< body >< h1 >The current time< /h1 >
Your HTML::EP system is up and running: The current time is $time$.
< /body >
< /html >
NEWS
HTML::EP does now have a homepage, a CVS repository and a bug tracking system. Try
http://html-ep.sourceforge.net/
Have you ever written a CGI binary? Easy thing, isnt it? Was just fun!
Have you written two CGI binaries? Even easier, but not so much fun.
How about the third, fourth or fifth tool? Sometimes you notice that you are always doing the same:
- Reading and parsing variables
- Formatting output, in particular building tables
- Sending mail out from the page
- Building a database connection, passing CGI input to the database and vice versa
- Talking to HTML designers about realizing their wishes
You see, its soon to become a pain. Of course there are little helpers around, for example the CGI module, the mod_perl suite and lots of it more. Using them make live a lot easier, but not so much as you like. CGI(3). mod_perl(3).
On the other hand, there are tools like PHP or WebHTML. Incredibly easy to use, but not as powerfull as Perl. Why not get the best from both worlds? This is what EP wants to give you, similar to ePerl or HTML::EmbPerl. I personally believe that EP is simpler and better extendible than the latter two. ePerl(1). HTML::EmbPerl(3).
In short, its a single, but extensible program, that scans an HTML document for certain special HTML tags. These tags are replaced by appropriate output generated by the EP. What remains is passed to the browser. Its just like writing HTML for an enhanced browser!
<<lessSYNOPSIS
< html >< head >< title >CGI-Env< /title >< /head >
< ep-comment >
This is an HTML document. You see. Perhaps you wonder about
the unknown HTML tags like ep-comment above? They are part
of the EP system. For example, this comment section will
be removed and you wont see it in your browser.
< /ep-comment >
< ep-perl >
# This is an example of embedding Perl into the page.
# We create a variable called time, containing the current
# time. This variable will be used below.
my $self = $_;
$self->{time} = localtime(time());
; # Return an empty string; result becomes embedded into the
# HTML page
< /ep-perl >
< body >< h1 >The current time< /h1 >
Your HTML::EP system is up and running: The current time is $time$.
< /body >
< /html >
NEWS
HTML::EP does now have a homepage, a CVS repository and a bug tracking system. Try
http://html-ep.sourceforge.net/
Have you ever written a CGI binary? Easy thing, isnt it? Was just fun!
Have you written two CGI binaries? Even easier, but not so much fun.
How about the third, fourth or fifth tool? Sometimes you notice that you are always doing the same:
- Reading and parsing variables
- Formatting output, in particular building tables
- Sending mail out from the page
- Building a database connection, passing CGI input to the database and vice versa
- Talking to HTML designers about realizing their wishes
You see, its soon to become a pain. Of course there are little helpers around, for example the CGI module, the mod_perl suite and lots of it more. Using them make live a lot easier, but not so much as you like. CGI(3). mod_perl(3).
On the other hand, there are tools like PHP or WebHTML. Incredibly easy to use, but not as powerfull as Perl. Why not get the best from both worlds? This is what EP wants to give you, similar to ePerl or HTML::EmbPerl. I personally believe that EP is simpler and better extendible than the latter two. ePerl(1). HTML::EmbPerl(3).
In short, its a single, but extensible program, that scans an HTML document for certain special HTML tags. These tags are replaced by appropriate output generated by the EP. What remains is passed to the browser. Its just like writing HTML for an enhanced browser!
Download (0.042MB)
Added: 2006-06-15 License: Perl Artistic License Price:
1227 downloads
HTML Objects 1.2.4
HTML Objects is a Perl module library for turning HTML tags into Perl objects. more>>
HTML Objects is a Perl module library for turning HTML tags into Perl objects. HTML Objects allows Web pages to be manipulated as a data structure rather than text.
Once manipulation is done, the entire page is generated via depth-first recursion.
<<lessOnce manipulation is done, the entire page is generated via depth-first recursion.
Download (0.025MB)
Added: 2006-05-09 License: GPL (GNU General Public License) Price:
1263 downloads
Pod::Html::HtmlTre 0.91
Pod::Html::HtmlTree is a Perl module to convert pod files to html tree. more>>
Pod::Html::HtmlTree is a Perl module to convert pod files to html tree.
SYNOPSIS
use Pod::Html::HtmlTree;
use Data::Dumper;
my $p = Pod::Html::HtmlTree->new;
$p->indir ( /usr/lib/perl5/site_perl/5.8.3/Pod );
$p->outdir ( /tmp/pod );
$p->mask_dir ( 0777 ); # default is 0775
$p->mask_html( 0777 ); # default is 0664
$p->pod_exts ( [ pm , pod ] ); # default is [pm,pod,cgi,pl]
# * you can use all arguments same as Pod::Html has except infile and outfile.
# * use * 0 * for argument value which does not require to have value.
$p->args({
css =>http://localhost/pod.css,
index => 0,
});
my $files = $p->create;
print Dumper ( $files );
This module does same as Pod::Html module but make html tree. Read Pod::Html document for more detail.
<<lessSYNOPSIS
use Pod::Html::HtmlTree;
use Data::Dumper;
my $p = Pod::Html::HtmlTree->new;
$p->indir ( /usr/lib/perl5/site_perl/5.8.3/Pod );
$p->outdir ( /tmp/pod );
$p->mask_dir ( 0777 ); # default is 0775
$p->mask_html( 0777 ); # default is 0664
$p->pod_exts ( [ pm , pod ] ); # default is [pm,pod,cgi,pl]
# * you can use all arguments same as Pod::Html has except infile and outfile.
# * use * 0 * for argument value which does not require to have value.
$p->args({
css =>http://localhost/pod.css,
index => 0,
});
my $files = $p->create;
print Dumper ( $files );
This module does same as Pod::Html module but make html tree. Read Pod::Html document for more detail.
Download (0.003MB)
Added: 2006-08-23 License: GPL (GNU General Public License) Price:
1157 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above html mailto search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed