##
sub bioseq :Global {
my ( $self, $c ) = @_;
my $bio_seq_obj = Bio::Seq->new();
# ... a lot of stuff, finally this:
$c->{stash}{bio_seq} = $bio_seq_obj;
}
####
__PACKAGE__->config(
# some config ...
expose_methods => [qw/colorised_seq_features/],
);
# for testing purposes
sub colorised_seq_features {
return 'testing, testing, 1,2';
}
####
The sequence is: [% colorised_seq_features(bio_seq) %]