File: base.pm

package info (click to toggle)
libcgi-application-plugin-tt-perl 1.05%2B~cs1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 440 kB
  • sloc: perl: 806; makefile: 17
file content (24 lines) | stat: -rw-r--r-- 429 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package TestApp::base;

use strict;
use base qw(CGI::Application);
use CGI::Application::Plugin::TT;

sub cgiapp_init {
    my $self = shift;
    $self->tt_config(
        TEMPLATE_OPTIONS => {
            INCLUDE_PATH => 't/templates/',
            POST_CHOMP => 1,
            DEBUG => 1,
            },
        );
}

sub setup {
    my $self = shift;
    $self->start_mode( 'test' );
    $self->run_modes([qw( test )]);
}

1;