add dynamic mason controller.
[sgn.git] / lib / SGN / Controller / Dynamic.pm
bloba09f6e0b226859bcca6d874c824aaba99632b480
2 package SGN::Controller::Dynamic;
4 use Moose;
6 BEGIN { extends 'Catalyst::Controller' };
8 sub render_page : Path('/pages') Args(1) {
9 my $self = shift;
10 my $c = shift;
11 my $mason = shift;
13 $c->stash->{template} = '/dynamic/'.$mason.".mas";