NAME

WebService::Mattermost::Helper::Table - Markdown table generator.

VERSION

version 0.29

DESCRIPTION

Format text as tables for Mattermost.

USAGE

use WebService::Mattermost::Helper::Table;

my $helper = WebService::Mattermost::Helper::Table->new({
    alignment => [ qw(r l l) ],
    headers   => [ 'ID', 'Title', 'Date Created' ],
    values    => [
        [ 1, 'First row',  '2018-09-16' ],
        [ 2, 'Second row', '2018-09-17' ],
        [ 3, 'Third row',  '2018-09-17' ],
    ],
});

print $helper->table;

SEE ALSO

Mattermost Markdown

AUTHOR

Mike Jones <mike@netsplit.org.uk>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2020 by Mike Jones.

This is free software, licensed under:

The MIT (X11) License