repo.or.cz
/
sgn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add dynamic mason controller.
[sgn.git]
/
lib
/
SGN
/
Controller
/
Dynamic.pm
blob
a09f6e0b226859bcca6d874c824aaba99632b480
1
2
package
SGN
::
Controller
::
Dynamic
;
3
4
use
Moose
;
5
6
BEGIN
{
extends
'Catalyst::Controller'
};
7
8
sub
render_page
:
Path
(
'/pages'
)
Args
(
1
) {
9
my
$self
=
shift
;
10
my
$c
=
shift
;
11
my
$mason
=
shift
;
12
13
$c
->
stash
->{
template
} =
'/dynamic/'
.
$mason
.
".mas"
;
14
}
15
16
1
;