Don't show merge option for detach
[scpubgit/stemmaweb.git] / lib / stemmaweb / View / TSV.pm
CommitLineData
6cf17f04 1package stemmaweb::View::TSV;
2use Moose;
3use namespace::autoclean;
4
5extends 'Catalyst::View';
6
7sub process {
8 my( $self, $c ) = @_;
9 $c->res->content_type( 'text/tab-separated-values' );
10 $c->res->content_encoding( 'UTF-8' );
11 $c->res->header( 'Content-Disposition',
12 sprintf( "attachment; filename=\"%s.tsv\"", $c->stash->{name} ) );
13 $c->res->output( $c->stash->{result} );
14}
15
16=head1 NAME
17
18stemmaweb::View::TSV - Catalyst View
19
20=head1 DESCRIPTION
21
22Catalyst View.
23
24
25=encoding utf8
26
27=head1 AUTHOR
28
29Tara L Andrews
30
31=head1 LICENSE
32
33This library is free software. You can redistribute it and/or modify
34it under the same terms as Perl itself.
35
36=cut
37
38__PACKAGE__->meta->make_immutable;
39
401;