[Catalyst] Building complex layouts

Lars Balker Rasmussen lars at balker.dk
Wed Dec 30 10:11:13 GMT 2009


On Wed, Dec 30, 2009 at 8:10 AM, Pavel O. Karoukin <pavel at yepcorp.com> wrote:
> Hello,
> I wonder what is a best practice to build complex layouts (sidebars, forms
> in 'em, list of latest news in sidebar, etc)?
> Right now I see it in chaining several actions and each one adding content
> into stash. Is there any other dry approaches?
> May be there is a way to separate each element of layout into it's own
> action + template and call this from "base" template?

Definitely split sidebars etc. into separate actions.  Then have
nginx, varnish or equiv. combine them with SSI/ESI.  This also helps
caching across pages.
-- 
Lars Balker Rasmussen                                        Consult::Perl



More information about the Catalyst mailing list