1 package stemmaweb::View::CSV;
3 use namespace::autoclean;
5 extends 'Catalyst::View';
9 $c->res->content_type( 'text/csv' );
10 $c->res->content_encoding( 'UTF-8' );
11 $c->res->header( 'Content-Disposition',
12 sprintf( "attachment; filename=\"%s.csv\"", $c->stash->{name} ) );
13 $c->res->output( $c->stash->{result} );
18 stemmaweb::View::CSV - Catalyst View
33 This library is free software. You can redistribute it and/or modify
34 it under the same terms as Perl itself.
38 __PACKAGE__->meta->make_immutable;