On 8/21/06, Tobias Kremer <[EMAIL PROTECTED]> wrote:
Hi list,

I have set up a site which utilizes the TTSite defaults for providing a common
header/footer using TTs wrapper mechanism. What if I want to bypass the
header/footer for certain URLs (specifically, I've forms which are injected
into DIVs via AJAX and those forms are not supposed to have the common
header/footer around 'em)? Is that possible? Something like Mason's

I handle this by changing the css/js/txt line in the wrapper, to look like this:

    IF template.name.match('\.(css|js|txt)') OR nowrap OR template.nowrap;

This way you can disable the wrapping either in the template, by putting [% META nowrap = 1 %], or in the controller, using $c->stash->{ 'nowrap' } = 1.

--
Jason Kohles
[EMAIL PROTECTED] - http://www.jasonkohles.com/
"A witty saying proves nothing."  -- Voltaire
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to