hydra/src/lib/Hydra/View/Plain.pm

15 lines
330 B
Perl
Raw Normal View History

2009-03-16 12:16:33 +00:00
package Hydra::View::Plain;
use strict;
use warnings;
use base 'Catalyst::View::Download::Plain';
2012-05-25 14:27:56 +00:00
sub process {
my ($self, $c) = @_;
2013-01-23 12:41:57 +00:00
$c->response->content_encoding("utf-8");
$c->response->content_type('text/plain') unless $c->response->content_type() ne "";
$c->response->body($c->stash->{plain}->{data});
2012-05-25 14:27:56 +00:00
}
2009-03-16 12:16:33 +00:00
1;