1 package stemmaweb::View::SVG;
4 use base 'Catalyst::View';
8 $c->res->content_type( 'image/svg+xml' );
9 $c->res->content_encoding( 'UTF-8' );
10 if( $c->stash->{download} ) {
11 $c->res->header( 'Content-Disposition',
12 sprintf( "attachment; filename=\"%s.svg\"", $c->stash->{name} ) );
14 $c->res->output( $c->stash->{result} );