] ? undef : shift;
my $data = shift || die 'table data is required';
my %respond = (
json => { json => $data },
html => { template => 'reply_table', 'reply_table.table' => $data },
csv
use Mojolicious::Lite;
plugin 'ReplyTable';
my $format = [format => [qw(
txt csv html json
xls xlsx
)]];
any '/table' => $format => sub {
my $c = shift;
my $data = [
is available to the template via the stash key C<reply_table.table>.
=head3 json
Implemented via the standard L<Mojo::JSON> handling.
=head3 txt
A textual representation of the table.
This format