Created
October 16, 2010 17:14
-
-
Save bigpresh/630041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
315 # And a route to list records already in the table: | |
316 get "$args{prefix}" => sub { | |
317 # TODO: handle pagination | |
318 my $sth = $dbh->prepare("select * from $table_name"); | |
319 $sth->execute; | |
320 my $table = HTML::Table::FromDatabase->new( | |
321 -sth => $sth, | |
322 -border => 1, | |
323 ); | |
324 return $table->getTable; | |
325 }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment