package App::AltSQL::Plugin::Dump::Format::html; use Moose::Role; sub format { my ($self, %params) = @_; my $table_data = $params{table_data}; # ehhh prob shouldn't put this here but couldn't resist. my $css = 'table{margin: 1em 1em 1em 2em;background: whitesmoke;border-collapse: collapse;}table th, table td{border: 1px gainsboro solid;padding: 0.2em;}table th{background: gainsboro;text-align: left;}'; my $html = "
| ' . escape($_->{name}) . ' | ' } @{ $table_data->{columns} } ) . "
|---|
| ' . escape($_) . ' | ' } @$row ) . '