HTML::Auto - automatic write HTML for common elements
Version 0.02
Simple example:
use HTML::Auto qw/matrix h v/; my @cols = qw/c1 c2 c3 c4 c5/; my @lines = qw/l1 l2 l3 l4 l5/; my $data = [ [1,2,3,4,5], [6,7,8,9,0], [1,1,1,1,1], [2,2,2,2,2], [3,3,3,3,3] ]; my $m = matrix(\@cols,\@lines,$data); print v( h($m,$m,$m), h($m,$m), );
Using attributes:
use HTML::Auto qw/matrix h v/; my @cols = qw/c1 c2/; my @lines = qw/l1 l2/; my $data = [ [ {v => 1, a => { style => 'background: green'}}, 2 ], [ {v => 3, a => {class => 'foo'}}, {v => 4, a => {style => 'color: red'}} ] ]; my $m = matrix(\@cols,\@lines,$data); print v( h($m) );
A function to allow horizontal composition.
A function to allow vertical composition.
Nuno Carvalho, <smash at cpan.org> André Santos, <andrefs at cpan.org>
<smash at cpan.org>
<andrefs at cpan.org>
Please report any bugs or feature requests to bug-html-auto at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-Auto. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-html-auto at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc HTML::Auto
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-Auto
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/HTML-Auto
CPAN Ratings
http://cpanratings.perl.org/d/HTML-Auto
Search CPAN
http://search.cpan.org/dist/HTML-Auto/
Copyright 2012 Nuno Carvalho.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'André'. Assuming UTF-8
To install HTML::Auto, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Auto
CPAN shell
perl -MCPAN -e shell install HTML::Auto
For more information on module installation, please visit the detailed CPAN module installation guide.