Layouts for static pages


#1

Is there any “standard” way if I wish to use a layout with an otherwise
static
page? Do I have to create a controller “and everything” for this to
work?

Thanks
David


#2

For things like this I just usually use a “main” controller, then
create the .rhtml files for each page. Then for performance you can
just cache the page.

As far as I know that’s the easiest way, then you only have to keep
track of one layout file. Plus a lot of the time you’ll want some
dynamic content in the layout anyway.

Pat