html tag
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 3034
HTMLpage 0.3
HTMLpage is a text-based HTML editor. more>>
HTMLpage is a text-based HTML editor. It can use dragndrop to generate hyperlinks and image tags with relative links and image sizes. It allows you to create a table by highlighting and copying a table from a document, pasting it into HTMLpage, and then clicking TABLE-ify.
It will turn the comma-delimited data into a nice neat HTML table. Plain text can be converted to HTML. It also features spell-checking, color tag generation from a color picker, and keyboard shortcuts for several common HTML tags.
Main features:
- It can generate image tags and hyperlinks via Drag N Drop
- Convert simple text passages to HTML, basically giving you proper line breaks and paragraph indentation, along with generating Link tags from any URLs you may have included. HTML-ify works on selected text, as does the TABLE-ify, listed below.
- Convert tab-delimited info into an HTML table (meaning you can copy a table from a document or Web page, paste it into HTMLpage, the TABLE-ify it to generate a simple, neat HTML table.) Will also turn URLs into links.
- Can accommodate multi-line table-cell info.
- Spell checking on text selections/passages
- Insert HTML color codes via a color dialog
- Has search, go to line and page-wide replace functions.
- Date insertion. For example: Saturday, 08/20/2005
Enhancements:
- A tag generation issue with images where when implementing MIME types, images made HREFs instead of image tags was fixed.
- pyGTK 2.6 is now used.
- Deprecation warnings were removed.
<<lessIt will turn the comma-delimited data into a nice neat HTML table. Plain text can be converted to HTML. It also features spell-checking, color tag generation from a color picker, and keyboard shortcuts for several common HTML tags.
Main features:
- It can generate image tags and hyperlinks via Drag N Drop
- Convert simple text passages to HTML, basically giving you proper line breaks and paragraph indentation, along with generating Link tags from any URLs you may have included. HTML-ify works on selected text, as does the TABLE-ify, listed below.
- Convert tab-delimited info into an HTML table (meaning you can copy a table from a document or Web page, paste it into HTMLpage, the TABLE-ify it to generate a simple, neat HTML table.) Will also turn URLs into links.
- Can accommodate multi-line table-cell info.
- Spell checking on text selections/passages
- Insert HTML color codes via a color dialog
- Has search, go to line and page-wide replace functions.
- Date insertion. For example: Saturday, 08/20/2005
Enhancements:
- A tag generation issue with images where when implementing MIME types, images made HREFs instead of image tags was fixed.
- pyGTK 2.6 is now used.
- Deprecation warnings were removed.
Download (1.2MB)
Added: 2005-08-25 License: GPL (GNU General Public License) Price:
1521 downloads
pyhtmloo 0.8
pyhtmloo is a library that allows python developers to use HTML code like any other python objects. more>>
pyhtmloo is a library that allows python developers to use HTML code like any other python objects. My final goal of this work is to have a library of HTML widgets. This will allow us to no re-invent the wheel when we build HTML pages.
An another interesting aspect of pyhtmloo is to split the work between web page desingers and python developers. This is an another idea of split between web layout and web content.
In the same area you can also look at HTMLGen and pyweb.
Main features:
- any HTML tag is a python object
- pyhtmloo objects can be inherited to have additional methods (for example addrow for Table obect).
- simple widgets are available.
Installation:
Simply untar the the tar file and execute setup.py.
You can test the code with given widgets.
Enhancements:
- Several bugfixes and new features were implemented.
- A bug in textarea was fixed. .addrow was added to table. .render(), .setattr(), .getattr(), .setparams(), and .getparams() were added.
- Generated HTML is now XHTML compliant.
<<lessAn another interesting aspect of pyhtmloo is to split the work between web page desingers and python developers. This is an another idea of split between web layout and web content.
In the same area you can also look at HTMLGen and pyweb.
Main features:
- any HTML tag is a python object
- pyhtmloo objects can be inherited to have additional methods (for example addrow for Table obect).
- simple widgets are available.
Installation:
Simply untar the the tar file and execute setup.py.
You can test the code with given widgets.
Enhancements:
- Several bugfixes and new features were implemented.
- A bug in textarea was fixed. .addrow was added to table. .render(), .setattr(), .getattr(), .setparams(), and .getparams() were added.
- Generated HTML is now XHTML compliant.
Download (0.005MB)
Added: 2006-03-13 License: GPL (GNU General Public License) Price:
1321 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::LoL 1.3
HTML::LoL is a Perl module that can construct HTML from pleasing Perl data structures. more>>
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.
<<lessSYNOPSIS
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.
Download (0.005MB)
Added: 2007-07-05 License: Perl Artistic License Price:
843 downloads
Chotha Beta 1
Chotha is a blog client written in PyQt4. more>>
Chotha is a blog client written in PyQt4. This is mainly for wordpress, will add support for others later. It is having basic HTML tag editing capabilities with saving blog entries locally in the system.
You can also save it as draft in the server. You can preview your entry either in Firefox or in Konqueror. Or else you can click and go to visual mode to see quick preview (without images).
<<lessYou can also save it as draft in the server. You can preview your entry either in Firefox or in Konqueror. Or else you can click and go to visual mode to see quick preview (without images).
Download (0.68MB)
Added: 2007-07-24 License: GPL (GNU General Public License) Price:
824 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
HTML::Template 2.9
HTML::Template module attempts to make using HTML templates simple and natural. more>>
HTML::Template module attempts to make using HTML templates simple and natural.
HTML::Template library extends standard HTML with a few new tags for variables, loops, if/else blocks and includes.
A file written with HTML and these new tags is called a template. Using this module you fill in the values for the variables and loops declared in the template.
This allows you to seperate design (the HTML) from the data, which you generate in the Perl script. While there are many other HTML template systems available, this module is simple and fast.
It doesnt try to reinvent Perl CGI, it just augments HTML with a few new and very useful abilities.
Enhancements:
- A new option was added to enforce Taint mode for unescaped variables.
- Several long-standing bugs were fixed.
- The enhanced tests produced by the Phalanx project are now part of the module.
<<lessHTML::Template library extends standard HTML with a few new tags for variables, loops, if/else blocks and includes.
A file written with HTML and these new tags is called a template. Using this module you fill in the values for the variables and loops declared in the template.
This allows you to seperate design (the HTML) from the data, which you generate in the Perl script. While there are many other HTML template systems available, this module is simple and fast.
It doesnt try to reinvent Perl CGI, it just augments HTML with a few new and very useful abilities.
Enhancements:
- A new option was added to enforce Taint mode for unescaped variables.
- Several long-standing bugs were fixed.
- The enhanced tests produced by the Phalanx project are now part of the module.
Download (0.061MB)
Added: 2007-01-31 License: GPL (GNU General Public License) Price:
998 downloads
HTML::BarGraph 0.5
HTML::BarGraph can generate multiset bar graphs using plain HTML. more>>
HTML::BarGraph can generate multiset bar graphs using plain HTML.
SYNOPSIS
use HTML::BarGraph;
print graph(
direction => h, ### or v or | / -
graphminsize => 250,
bartype => pixel, ### or html
barlength => 100,
barwidth => 10 ,
baraspect => .03,
color => blue,
colors => [ blue, red, lightblue ],
pixeldir => /images,
pixelfmt => PNG,
data => [
[ val11, val12, ... ],
[ val21, val22, ... ],
],
tags => [ one, two, ... ],
setspacer => 0,
highlighttag => [ tag1... ], ### or tag1 (one value)
# OR
highlightpos => [ 5, ...], ### or 5 (one value)
highlightcolor => red,
addalt => 1,
showaxistags => 1,
showvalues => 1,
valuesuffix => %,
valueprefix => => ,
bordertype => flat, ### or reised
bordercolor => #333333, ### or #RRGGBB
borderwidth => 1,
bgcolor => bisque, ### or #RRGGBB
textcolor => black, ### or #RRGGBB
title => title,
titlecolor => black, ### or #RRGGBB
titlealign => center, ### or left or right
fontface => sansserif,
ylabel => randoms,
ylabelalign => middle, ### or top or bottom
xlabel => index,
xlabelalign => center, ### or left or right
labeltextcolor => yellow,
labelbgcolor => black,
);
<<lessSYNOPSIS
use HTML::BarGraph;
print graph(
direction => h, ### or v or | / -
graphminsize => 250,
bartype => pixel, ### or html
barlength => 100,
barwidth => 10 ,
baraspect => .03,
color => blue,
colors => [ blue, red, lightblue ],
pixeldir => /images,
pixelfmt => PNG,
data => [
[ val11, val12, ... ],
[ val21, val22, ... ],
],
tags => [ one, two, ... ],
setspacer => 0,
highlighttag => [ tag1... ], ### or tag1 (one value)
# OR
highlightpos => [ 5, ...], ### or 5 (one value)
highlightcolor => red,
addalt => 1,
showaxistags => 1,
showvalues => 1,
valuesuffix => %,
valueprefix => => ,
bordertype => flat, ### or reised
bordercolor => #333333, ### or #RRGGBB
borderwidth => 1,
bgcolor => bisque, ### or #RRGGBB
textcolor => black, ### or #RRGGBB
title => title,
titlecolor => black, ### or #RRGGBB
titlealign => center, ### or left or right
fontface => sansserif,
ylabel => randoms,
ylabelalign => middle, ### or top or bottom
xlabel => index,
xlabelalign => center, ### or left or right
labeltextcolor => yellow,
labelbgcolor => black,
);
Download (0.012MB)
Added: 2006-07-31 License: Perl Artistic License Price:
1180 downloads
HTML Redemption Language 0.5
HTML Redemption Language, or HRL for short, is an HTML-preprocessor. more>>
HTML Redemption Language, or HRL for short, is an HTML-preprocessor. Its basically a macro package, with built-in Python scripting.
It redeems HTML by adding useful tags such as < include >, < macro >, < if >, and < python >. The last tag allows the web site designer to embed Python "scriptlets" in the HRL source to perform complex preprocessing tasks.
HRL is a preprocessor, designed to be invoked manually by the user to generate the web site. It is not fast enough to generate web pages on the fly. A comparable package is hsc.
<<lessIt redeems HTML by adding useful tags such as < include >, < macro >, < if >, and < python >. The last tag allows the web site designer to embed Python "scriptlets" in the HRL source to perform complex preprocessing tasks.
HRL is a preprocessor, designed to be invoked manually by the user to generate the web site. It is not fast enough to generate web pages on the fly. A comparable package is hsc.
Download (0.034MB)
Added: 2006-11-16 License: GPL (GNU General Public License) Price:
1072 downloads
YAPE::HTML 1.11
YAPE::HTML is Yet Another Parser/Extractor for HTML. more>>
YAPE::HTML is Yet Another Parser/Extractor for HTML.
SYNOPSIS
use YAPE::HTML;
use strict;
my $content = "< html>...< /html>";
my $parser = YAPE::HTML->new($content);
my ($extor,@fonts,@urls,@headings,@comments);
# here is the tokenizing part
while (my $chunk = $parser->next) {
if ($chunk->type eq tag and $chunk->tag eq font) {
if (my $face = $chunk->get_attr(face)) {
push @fonts, $face;
}
}
}
# here we catch any errors
unless ($parser->done) {
die sprintf "bad HTML: %s (%s)",
$parser->error, $parser->chunk;
}
# here is the extracting part
# < A> tags with HREF attributes
# < IMG> tags with SRC attributes
$extor = $parser->extract(a => [href], img => [src]);
while (my $chunk = $extor->()) {
push @urls, $chunk->get_attr(
$chunk->tag eq a ? href : src
);
}
# < H1>, < H2>, ..., < H6> tags
$extor = $parser->extract(qr/^h[1-6]$/ => []);
while (my $chunk = $extor->()) {
push @headings, $chunk;
}
# all comments
$extor = $parser->extract(-COMMENT => []);
while (my $chunk = $extor->()) {
push @comments, $chunk;
}
YAPE MODULES
The YAPE hierarchy of modules is an attempt at a unified means of parsing and extracting content. It attempts to maintain a generic interface, to promote simplicity and reusability. The API is powerful, yet simple. The modules do tokenization (which can be intercepted) and build trees, so that extraction of specific nodes is doable.
This module is yet another parser and tree-builder for HTML documents. It is designed to make extraction and modification of HTML documents simplistic. The API allows for easy custom additions to the document being parsed, and allows very specific tag, text, and comment extraction.
<<lessSYNOPSIS
use YAPE::HTML;
use strict;
my $content = "< html>...< /html>";
my $parser = YAPE::HTML->new($content);
my ($extor,@fonts,@urls,@headings,@comments);
# here is the tokenizing part
while (my $chunk = $parser->next) {
if ($chunk->type eq tag and $chunk->tag eq font) {
if (my $face = $chunk->get_attr(face)) {
push @fonts, $face;
}
}
}
# here we catch any errors
unless ($parser->done) {
die sprintf "bad HTML: %s (%s)",
$parser->error, $parser->chunk;
}
# here is the extracting part
# < A> tags with HREF attributes
# < IMG> tags with SRC attributes
$extor = $parser->extract(a => [href], img => [src]);
while (my $chunk = $extor->()) {
push @urls, $chunk->get_attr(
$chunk->tag eq a ? href : src
);
}
# < H1>, < H2>, ..., < H6> tags
$extor = $parser->extract(qr/^h[1-6]$/ => []);
while (my $chunk = $extor->()) {
push @headings, $chunk;
}
# all comments
$extor = $parser->extract(-COMMENT => []);
while (my $chunk = $extor->()) {
push @comments, $chunk;
}
YAPE MODULES
The YAPE hierarchy of modules is an attempt at a unified means of parsing and extracting content. It attempts to maintain a generic interface, to promote simplicity and reusability. The API is powerful, yet simple. The modules do tokenization (which can be intercepted) and build trees, so that extraction of specific nodes is doable.
This module is yet another parser and tree-builder for HTML documents. It is designed to make extraction and modification of HTML documents simplistic. The API allows for easy custom additions to the document being parsed, and allows very specific tag, text, and comment extraction.
Download (0.019MB)
Added: 2007-07-11 License: Perl Artistic License Price:
842 downloads
HTML::Clean 0.8
HTML::Clean module cleans up HTML code for web browsers, not humans. more>>
HTML::Clean module cleans up HTML code for web browsers, not humans.
SYNOPSIS
use HTML::Clean;
$h = new HTML::Clean($filename); # or..
$h = new HTML::Clean($htmlcode);
$h->compat();
$h->strip();
$data = $h->data();
print $$data;
The HTML::Clean module encapsulates a number of common techniques for minimizing the size of HTML files. You can typically save between 10% and 50% of the size of a HTML file using these methods. It provides the following features:
Remove unneeded whitespace (begining of line, etc)
Remove unneeded META elements.
Remove HTML comments (except for styles, javascript and SSI)
Replace tags with equivilant shorter tags (< strong > --> < b >)
etc.
The entire proces is configurable, so you can pick and choose what you want to clean.
<<lessSYNOPSIS
use HTML::Clean;
$h = new HTML::Clean($filename); # or..
$h = new HTML::Clean($htmlcode);
$h->compat();
$h->strip();
$data = $h->data();
print $$data;
The HTML::Clean module encapsulates a number of common techniques for minimizing the size of HTML files. You can typically save between 10% and 50% of the size of a HTML file using these methods. It provides the following features:
Remove unneeded whitespace (begining of line, etc)
Remove unneeded META elements.
Remove HTML comments (except for styles, javascript and SSI)
Replace tags with equivilant shorter tags (< strong > --> < b >)
etc.
The entire proces is configurable, so you can pick and choose what you want to clean.
Download (0.047MB)
Added: 2007-08-07 License: Perl Artistic License Price:
808 downloads
HTML::Lint 2.02
HTML::Lint can check for HTML errors in a string or file. more>>
HTML::Lint can check for HTML errors in a string or file.
SYNOPSIS
my $lint = HTML::Lint->new;
$lint->only_types( HTML::Lint::STRUCTURE );
$lint->parse( $data );
$lint->parse_file( $filename );
my $error_count = $lint->errors;
foreach my $error ( $lint->errors ) {
print $error->as_string, "n";
}
HTML::Lint also comes with a wrapper program called weblint that handles linting from the command line:
$ weblint http://www.cnn.com/
http://www.cnn.com/ (395:83) < IMG SRC="spacer.gif" > tag has no HEIGHT and WIDTH attributes.
http://www.cnn.com/ (395:83) < IMG SRC="goofus.gif" > does not have ALT text defined
http://www.cnn.com/ (396:217) Unknown element < nobr >
http://www.cnn.com/ (396:241) < /nobr > with no opening < nobr >
http://www.cnn.com/ (842:7) target attribute in < a > is repeated
And finally, you can also get Apache::HTML::Lint that passes any mod_perl-generated code through HTML::Lint and get it dumped into your Apache error_log.
[Mon Jun 3 14:03:31 2002] [warn] /foo.pl (1:45) < /p > with no opening < p >
[Mon Jun 3 14:03:31 2002] [warn] /foo.pl (1:49) Unknown element < gronk >
[Mon Jun 3 14:03:31 2002] [warn] /foo.pl (1:56) Unknown attribute "x" for tag < table >
<<lessSYNOPSIS
my $lint = HTML::Lint->new;
$lint->only_types( HTML::Lint::STRUCTURE );
$lint->parse( $data );
$lint->parse_file( $filename );
my $error_count = $lint->errors;
foreach my $error ( $lint->errors ) {
print $error->as_string, "n";
}
HTML::Lint also comes with a wrapper program called weblint that handles linting from the command line:
$ weblint http://www.cnn.com/
http://www.cnn.com/ (395:83) < IMG SRC="spacer.gif" > tag has no HEIGHT and WIDTH attributes.
http://www.cnn.com/ (395:83) < IMG SRC="goofus.gif" > does not have ALT text defined
http://www.cnn.com/ (396:217) Unknown element < nobr >
http://www.cnn.com/ (396:241) < /nobr > with no opening < nobr >
http://www.cnn.com/ (842:7) target attribute in < a > is repeated
And finally, you can also get Apache::HTML::Lint that passes any mod_perl-generated code through HTML::Lint and get it dumped into your Apache error_log.
[Mon Jun 3 14:03:31 2002] [warn] /foo.pl (1:45) < /p > with no opening < p >
[Mon Jun 3 14:03:31 2002] [warn] /foo.pl (1:49) Unknown element < gronk >
[Mon Jun 3 14:03:31 2002] [warn] /foo.pl (1:56) Unknown attribute "x" for tag < table >
Download (0.022MB)
Added: 2007-08-06 License: Perl Artistic License Price:
813 downloads
HTML::Tree::Scanning 3.23
HTML::Tree::Scanning contains an article: Scanning HTML. more>>
HTML::Tree::Scanning contains an article: "Scanning HTML".
SYNOPSIS
# This an article, not a module.
The following article by Sean M. Burke first appeared in The Perl Journal #19 and is copyright 2000 The Perl Journal. It appears courtesy of Jon Orwant and The Perl Journal. This document may be distributed under the same terms as Perl itself.
Scanning HTML
-- Sean M. Burke
In The Perl Journal issue 17, Ken MacFarlanes article "Parsing HTML with HTML::Parser" describes how the HTML::Parser module scans HTML source as a stream of start-tags, end-tags, text, comments, etc. In TPJ #18, my "Trees" article kicked around the idea of tree-shaped data structures. Now Ill try to tie it together, in a discussion of HTML trees.
The CPAN module HTML::TreeBuilder takes the tags that HTML::Parser picks out, and builds a parse tree -- a tree-shaped network of objects...
Footnote: And if you need a quick explanation of objects, see my TPJ17 article "A Users View of Object-Oriented Modules"; or go whole hog and get Damian Conways excellent book Object-Oriented Perl, from Manning Publications.
...representing the structured content of the HTML document. And once the document is parsed as a tree, youll find the common tasks of extracting data from that HTML document/tree to be quite straightforward.
<<lessSYNOPSIS
# This an article, not a module.
The following article by Sean M. Burke first appeared in The Perl Journal #19 and is copyright 2000 The Perl Journal. It appears courtesy of Jon Orwant and The Perl Journal. This document may be distributed under the same terms as Perl itself.
Scanning HTML
-- Sean M. Burke
In The Perl Journal issue 17, Ken MacFarlanes article "Parsing HTML with HTML::Parser" describes how the HTML::Parser module scans HTML source as a stream of start-tags, end-tags, text, comments, etc. In TPJ #18, my "Trees" article kicked around the idea of tree-shaped data structures. Now Ill try to tie it together, in a discussion of HTML trees.
The CPAN module HTML::TreeBuilder takes the tags that HTML::Parser picks out, and builds a parse tree -- a tree-shaped network of objects...
Footnote: And if you need a quick explanation of objects, see my TPJ17 article "A Users View of Object-Oriented Modules"; or go whole hog and get Damian Conways excellent book Object-Oriented Perl, from Manning Publications.
...representing the structured content of the HTML document. And once the document is parsed as a tree, youll find the common tasks of extracting data from that HTML document/tree to be quite straightforward.
Download (0.11MB)
Added: 2006-12-14 License: Perl Artistic License Price:
1044 downloads
HTML::FormRemove 0.3a
HTML::FormRemove is a Perl module to remove form tags from HTML. more>>
HTML::FormRemove is a Perl module to remove form tags from HTML.
SYNOPSIS
my $html =
"< FORM > < INPUT TYPE=TEXT NAME=Test VALUE=Hello World! > < /FORM >";
use HTML::FormRemove
print RemoveFormValues($html);
HTML::FormRemove is a module that removes form tags from HTML, while otherwise leaving the HTML intact. This allows for forms to be converted into something printable and usable.
RemoveFormValues ( HTML [, HTML [, HTML [...]]] )
Removes the form values. Exported by default. Returns an array of lines containing the updated HTML, or one single like containing them separated by newlines.
NOTES
This module is a work in progress; Ive only got basic functionality working at the moment.
<<lessSYNOPSIS
my $html =
"< FORM > < INPUT TYPE=TEXT NAME=Test VALUE=Hello World! > < /FORM >";
use HTML::FormRemove
print RemoveFormValues($html);
HTML::FormRemove is a module that removes form tags from HTML, while otherwise leaving the HTML intact. This allows for forms to be converted into something printable and usable.
RemoveFormValues ( HTML [, HTML [, HTML [...]]] )
Removes the form values. Exported by default. Returns an array of lines containing the updated HTML, or one single like containing them separated by newlines.
NOTES
This module is a work in progress; Ive only got basic functionality working at the moment.
Download (0.004MB)
Added: 2007-02-13 License: Other/Proprietary License Price:
983 downloads
HTML::Macro 1.27
HTML::Macro can process HTML templates with loops, conditionals, macros and more! more>>
HTML::Macro can process HTML templates with loops, conditionals, macros and more!
SYNOPSIS
use HTML::Macro;
$htm = new HTML::Macro (template.html);
$htm->print;
sub myfunc {
$htm->declare (var, missing);
$htm->set (var, value);
return $htm->process;
}
( in template.html ):
< html >< body >
< eval expr="&myfunc" >
< if def="missing" >
Message about missing stuff...
< else / >
Vars value is #var#.
< /if >
< /eval >
< /body >< /html >
HTML::Macro is a module to be used behind a web server (in CGI scripts). It provides a convenient mechanism for generating HTML pages by combining "dynamic" data derived from a database or other computation with HTML templates that represent fixed or "static" content of a page.
There are many different ways to accomplish what HTML::Macro does, including ASP, embedded perl, CFML, etc, etc. The motivation behind HTML::Macro is to keep everything that a graphic designer wants to play with *in a single HTML template*, and to keep as much as possible of what a perl programmer wants to play with *in a perl file*. Our thinking is that there are two basically dissimilar tasks involved in producing a dynamic web page: graphic design and programming. Even if one person is responsible for both tasks, it is useful to separate them in order to aid clear thinking and organized work. I guess you could say the main motivation for this separation is to make it easier for emacs (and other text processors, including humans) to parse your files: its yucky to have a lot of HTML in a string in your perl file, and its yucky to have perl embedded in a special tag in an HTML file.
HTML::Macro began with some simple programming constructs: macro expansions, include files, conditionals, loops and block quotes. Since then weve added very little: only a define tag to allow setting values and an eval tag to allow perl function calls in a nested macro scope. Our creed is "less is more, more or less."
HTML::Macro variables will look familiar to C preprocessor users or especially to Cold Fusion people. They are always surrounded with single or double hash marks: "#" or "##". Variables surrounded by double hash marks are subject to html entity encoding; variables with single hash marks are substituted "as is" (like single quotes in perl or UNIX shells). Conditionals are denoted by the and tags, and loops by the tag. Quoting used to be done using a tag, but we now deprecate that in favor of the more familiar CFML quoting syntax: < !--- --- >.
<<lessSYNOPSIS
use HTML::Macro;
$htm = new HTML::Macro (template.html);
$htm->print;
sub myfunc {
$htm->declare (var, missing);
$htm->set (var, value);
return $htm->process;
}
( in template.html ):
< html >< body >
< eval expr="&myfunc" >
< if def="missing" >
Message about missing stuff...
< else / >
Vars value is #var#.
< /if >
< /eval >
< /body >< /html >
HTML::Macro is a module to be used behind a web server (in CGI scripts). It provides a convenient mechanism for generating HTML pages by combining "dynamic" data derived from a database or other computation with HTML templates that represent fixed or "static" content of a page.
There are many different ways to accomplish what HTML::Macro does, including ASP, embedded perl, CFML, etc, etc. The motivation behind HTML::Macro is to keep everything that a graphic designer wants to play with *in a single HTML template*, and to keep as much as possible of what a perl programmer wants to play with *in a perl file*. Our thinking is that there are two basically dissimilar tasks involved in producing a dynamic web page: graphic design and programming. Even if one person is responsible for both tasks, it is useful to separate them in order to aid clear thinking and organized work. I guess you could say the main motivation for this separation is to make it easier for emacs (and other text processors, including humans) to parse your files: its yucky to have a lot of HTML in a string in your perl file, and its yucky to have perl embedded in a special tag in an HTML file.
HTML::Macro began with some simple programming constructs: macro expansions, include files, conditionals, loops and block quotes. Since then weve added very little: only a define tag to allow setting values and an eval tag to allow perl function calls in a nested macro scope. Our creed is "less is more, more or less."
HTML::Macro variables will look familiar to C preprocessor users or especially to Cold Fusion people. They are always surrounded with single or double hash marks: "#" or "##". Variables surrounded by double hash marks are subject to html entity encoding; variables with single hash marks are substituted "as is" (like single quotes in perl or UNIX shells). Conditionals are denoted by the and tags, and loops by the tag. Quoting used to be done using a tag, but we now deprecate that in favor of the more familiar CFML quoting syntax: < !--- --- >.
Download (0.023MB)
Added: 2006-07-31 License: Perl Artistic License Price:
1180 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 tag 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