[Catalyst] Building complex layouts
Jay Kuri
jayk at ion0.com
Wed Dec 30 14:29:32 GMT 2009
We created Subinclude for exactly this purpose:
http://search.cpan.org/dist/Catalyst-View-Component-SubInclude/lib/Catalyst/View/Component/SubInclude.pm
Include another bit of output from a Catalyst app via a number of methods, including ESI and SubRequests.
Makes including those pieces particularly easy too, as it doesn't require you to know in your action what you'll need in your view.
Jay
On Dec 30, 2009, at 7:15 AM, Lars Balker Rasmussen wrote:
> On Wed, Dec 30, 2009 at 2:49 PM, Peter Corlett <abuse at cabal.org.uk> wrote:
>> On 30 Dec 2009, at 10:11, Lars Balker Rasmussen wrote:
>> [...]
>>>
>>> Definitely split sidebars etc. into separate actions. Then have nginx,
>>> varnish or equiv. combine them with SSI/ESI. This also helps caching across
>>> pages.
>>
>> Does Catalyst's built-in web server support either technology yet? If not,
>> you're going to find it harder to debug your site if you use them.
>
> Meh, it'd be a trivial plugin to write, if nobody hasn't already.
> --
> Lars Balker Rasmussen Consult::Perl
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list