On Mon, Nov 29, 2010 at 5:27 PM, Sam Kaufman <[email protected]>wrote:

> I've found the easiest way is to have some logic in your wrapper:
> something like this:
> [%
>  IF no_wrapper;
>  content;
>  ELSE;
>  content WRAPPER site/html + site/layout;
> END;
> %]
>

I tend to use a CASE statement in my wrapper to allow for different layouts.

so $c->stash(no_wrapper => 1) and it won't be wrapped.
>

Yes, but I also allow templates to specify their layout.  So for an action
/foo/bar  I might have /foo/bar.tt and in bar.tt:

[%   page.layout = 'cms'; # override default layout %]




-- 
Bill Moseley
[email protected]
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to