my( $self, $c ) = @_;
my $m = $c->model( 'Analysis' );
my $t = $m->{'data'}->[ $c->request->params->{'textid'} ];
- $c->stash->{result} = $t->{'svg'};
- $c->forward( "View::SVG" );
+ $c->stash->{svg} = $t->{'svg'};
+ $c->stash->{template} = 'stemma_gadget.tt';
}
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+ <head>
+ <META http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
+ <script type="text/javascript" src="js/jquery-ui-1.8.10.custom.min.js"></script>
+ <script type="text/javascript" src="js/interaction.js"></script>
+ <link type="text/css" href="[% c.uri_for('css/cupertino/jquery-ui-1.8.13.custom.css') %]" rel="stylesheet" />
+ [% INCLUDE style.tt2 %]
+ </head>
+ <body>
+ <div id="svg_graph">
+ [% svg %]
+ </div>
+ </body>
+</html>