root/lang/perl/Catalyst-View-Spreadsheet-WriteExcel/trunk/t/lib/TestApp.pm @ 21985

Revision 21985, 0.6 kB (checked in by mizuno_takaaki, 5 years ago)

lang/perl/Catalyst-View-Spreadsheet-WriteExcel?: utf16 supported

Line 
1package TestApp;
2use strict;
3use warnings;
4
5use Catalyst;
6use utf8;
7
8our $VERSION = '0.01';
9__PACKAGE__->config({
10        name => 'TestApp',
11        'View::Excel' => {
12            expose_stash => 'sheet',
13        },
14    });
15
16__PACKAGE__->setup;
17
18sub foo : Global {
19    my ( $self, $c ) = @_;
20    my @list = (
21        {name => 'mizuno', score => 10,},
22        {name => 'aql', score => 130,},
23        {name => '$B$R$G$*$-(B', score => 200, },
24        {name => '$B$N$V$*(B', score => 70, },
25    );
26    $c->stash(
27        header => ['name', 'score'],
28        sheet => \@list,
29    );
30    $c->forward('TestApp::View::Excel');
31}
32
331;
Note: See TracBrowser for help on using the browser.