File: Config.pm

package info (click to toggle)
libcatalyst-plugin-configloader-perl 0.35-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 280 kB
  • sloc: perl: 371; makefile: 2
file content (18 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package TestApp3::Controller::Config;

use strict;
use warnings;

use base qw( Catalyst::Controller );

sub index : Private {
    my ( $self, $c ) = @_;
    $c->res->output( $self->{ foo } );
}

sub appconfig : Global {
    my ( $self, $c, $var ) = @_;
    $c->res->body( $c->config->{ $var } );
}

1;