DBIx-HTML

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

0.05
    - moving install test out of distro

0.04
    - fixed tardist manifest

0.03
    - now stands alone (uses only DBI and Spreadsheet::HTML)

0.02
    - merge DBIx::XHTML and Spreadsheet:HTML

0.01
    - First version, released on an unsuspecting world.

lib/DBIx/HTML.pm  view on Meta::CPAN

        ->connect( @db_credentials )
        ->do( 'select foo,baz from bar' )
        ->landscape
    ;

    # rotating attributes:
    print $generator->portrait( tr => { class => [qw( odd even )] } );

=head1 DESCRIPTION

Generate HTML tables from database queries (HTML4, XHTML and HTML5).
Can generate landscape and other rotated views, Handsontable tables,
checkboard patterns, and can create animations of cell values and
backgrounds via jQuery.

Connect to the database and issue a query. The result will be
an HTML HTML5 or XHTML table containing the query results wrapped
in <td> tags and headings wrapped in <th> tags. Headings values have
the first character in each word upper cased, with underscores replaced
by spaces. All automatic settings can be overridden. For example, if
you do not want the headings to be automatically styled, you can remove
them like so:

  print $generator->portrait( headings => undef );

  # or add your own styling
  print $generator->portrait( headings => sub { uc shift } );



( run in 0.499 second using v1.01-cache-2.11-cpan-49f99fa48dc )