[![Release](https://img.shields.io/github/release/giterlizzi/perl-Mojolicious-Plugin-DataTables.svg)](https://github.com/giterlizzi/perl-Mojolicious-Plugin-DataTables/releases) [![Build Status](https://travis-ci.org/giterlizzi/perl-Mojolicious-Plugin-DataTables.svg)](https://travis-ci.org/giterlizzi/perl-Mojolicious-Plugin-DataTables) [![License](https://img.shields.io/github/license/giterlizzi/perl-Mojolicious-Plugin-DataTables.svg)](https://github.com/giterlizzi/perl-Mojolicious-Plugin-DataTables) [![Starts](https://img.shields.io/github/stars/giterlizzi/perl-Mojolicious-Plugin-DataTables.svg)](https://github.com/giterlizzi/perl-Mojolicious-Plugin-DataTables) [![Forks](https://img.shields.io/github/forks/giterlizzi/perl-Mojolicious-Plugin-DataTables.svg)](https://github.com/giterlizzi/perl-Mojolicious-Plugin-DataTables) [![Issues](https://img.shields.io/github/issues/giterlizzi/perl-Mojolicious-Plugin-DataTables.svg)](https://github.com/giterlizzi/perl-Mojolicious-Plugin-DataTables/issues) # Mojolicious::Plugin::DataTables ## Usage ```.pl # Mojolicious $self->plugin('DataTables'); # Mojolicious::Lite plugin 'DataTables'; get '/users_table' => sub { my $c = shift; my $db = $c->dbi->db; my $dt_ssp = $c->datatable->ssp( table => 'users', db => $db, options => [ { label => 'UID', db => 'uid', dt => 0, }, { label => 'e-Mail', db => 'mail', dt => 1, }, { label => 'Status', db => 'status', dt => 2, }, ] )); $c->render(json => $dt_ssp); }; ``` ```.html @@ template.html.ep
<%= datatables_js %> <%= datatables_css %>UID | Status |
---|