in reply to Server-side processing?

I don't know much about jQuery, but the general idea is to create the table content in Perl (using a templating system, like Template::Toolkit, HTML::Template or maybe Mojolicious), and then send that to the browser.

Something like the following:

use Mojolicious::Lite; get '/' => sub { my( $c ) = @_; # fake fetch rows from database # my $sth = $dbh->prepare( "select id, name from mytable order by +id" ); # my @rows = $sth->fetchall_arrayref( {} ); my @rows = ( { id => 10123, , name => 'Jane Doe' }, { id => 20911, , name => 'John Devo' }, ); $c->stash( rows => \@rows ); $c->render( 'index' ); } __DATA__ @@index.html.ep <!DOCTYPE html> <html> <body> <table> <thead><tr><th>ID</th><th>Name</th></tr></thead> % for my $row (@$rows) { <tr><td><%= $row->{id} ></td><td><%= $row->{name} </td></tr> % } </table> </body> </html>