to false. If set
to a true value, The results show on the HTML page can be downloaded as
CSV/TSV/JSON/XML. The download links will appear at the top of the page.
=item C<foreign_keys>
A hashref to
my $page = uri_escape(params->{'p'} || 0);
my @formats = qw/csv tabular json xml/;
my $url = _external_url($args->{dancer_prefix}, $args->{prefix})
. "?o
ormat eq "json") {
header('Content-Type' => 'text/json');
header('Content-Disposition' =>
"attachment; filename=\"$filename.json\"");
$output = to_json($sth->fe