DataTables
view release on metacpan or search on metacpan
lib/DataTables.pm view on Meta::CPAN
if you feel you need to specify more than what DataTables already
does.
=head2 print_json
$dt->print_json();
I recommend using this method to display the information
back to the browser once you've set up the DataTables object.
It not only prints the json out, but also takes care of printing
the content-type header back to the browser.
=head2 json
my $json = $dt->json();
print "Content-type: application/json\n\n";
print $json;
The json() method returns the json to you that the jQuery DataTables plugin
is expecting. What I wrote above is essentially what the print_json() method does,
so I suggest that you just use that.
( run in 0.773 second using v1.01-cache-2.11-cpan-524268b4103 )