Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Sub-guide pages

  • Loading branch information...
commit 17f99625447168a941fd3a9dbd9ea4b97017327b 1 parent 487336e
@jshirley jshirley authored
View
2  designs/plain/root/index.tt
@@ -1,2 +0,0 @@
-<h1>Plain!</h1>
-This is the plain theme.
View
8 lib/StyleGuide/Controller/Root.pm
@@ -40,7 +40,13 @@ sub index : Chained('setup') PathPart('') Args(0) {
my ( $self, $c ) = @_;
}
-sub guide : Chained('setup') Args(0) { }
+sub guide : Chained('setup') Args {
+ my ( $self, $c, $layout ) = @_;
+
+ if ( $c->path_to("root/guide", "$layout.tt") ) {
+ $c->stash->{template} = "guide/$layout.tt";
+ }
+}
sub switch : Chained('guide') Args(0) {
my ( $self, $c ) = @_;
Please sign in to comment.
Something went wrong with that request. Please try again.