2 package SGN
::Controller
::Help
;
6 BEGIN { extends
"Catalyst::Controller"; }
8 sub about
: Path
('/about') Args
(0) {
14 sub help
: Path
('/help') Args
(0) {
18 $c->stash->{template
} = '/help/index.mas';
21 sub help_section
: Path
('/help') Args
(1) {
25 $section =~ s/\.\.//g; # prevent shenanigans
28 my $component = '/help/'.$section.".mas";
29 if ($c->view("Mason")->interp->comp_exists($component)) {
30 $c->stash->{basepath
} = $c->config->{basepath
};
31 $c->stash->{documents_subdir
} = $c->config->{documents_subdir
};
32 $c->stash->{template
} = '/help/'.$section.".mas";
37 $c->stash->{template
} = '/generic_message.mas';
38 $c->stash->{message
} = 'The requested page could not be found. <br /><a href="/help">Help page</a>';