|
HTML::ArrayGenerator - Easy generation of a HTML array |
HTML::ArrayGenerator - Easy generation of a HTML array
Here's some examples :
use HTML::ArrayGenerator;
my $gen = ArrayGenerator->new;
# first we build the array...
$gen->set(0, 0, title => "First");
$gen->set(0, 1, title => "Second");
$gen->set(1, 1, text => "first sentence", align => "center");
# two things in same case ? then the second is on a newline
$gen->set(1, 1, text => "second sentence", link => "www.perldoc.com");
$gen->set(0, 2, img => "perl.png", alt => "My favorite camel");
$gen->set(0, 3, img => "perl.png", alt => "Always my favorite camel", link => "www.cpan.org");
# some complex code
$gen->set(0, 10, code => "<td> <ul><p>first<p>second</ul> </td");
# then we generate it...
$gen->generate_page (\*STDOUT, title => "Title of the page", array_title => "A title...", border => 10);
$gen->generate_array(\*STDOUT, border => 10);
There are three functions for generating an HTML array.
Kototama <codeur(at)altern.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|
HTML::ArrayGenerator - Easy generation of a HTML array |