[Catalyst-dev] Configure View::TT per request

Oleg Pronin syber.rus at gmail.com
Sat Oct 20 13:13:04 GMT 2007


Create a second View with other wrapper (or without it) and use it.

2007/10/19, Devo Coran <devincoran at yahoo.com>:
>
> Hi,
>
> I'm new to catalyst and am stuck on how to do this..
>
> I'm using View::TT and for most of my requests I do
> want it to use the standard config with:
>
>    PRE_PROCESS        =3D> 'config/main',
>    WRAPPER            =3D> 'site/wrapper',
>
> However by the same token I have a number of other
> requests, like ajax content coming into a div, where I
> don't want to use those config options or add a
> header/footer etc.
>
> For now I've been getting around by using [% IF
> somevar %] type blocks to include/exclude header/foot
> content but that's rather hacked, what I really need
> is to be able to configure the View::TT per request.
>
> I even have one template that I need to display
> without going through TT at all, it needs to show as
> plain text so a user can edit it as is.  For that I
> had to edit the wrapper to pass it through as text
> when it sees a template with that name.
>
> So again if I could configure View:TT per request I
> can avoid hacks.
>
> thanks!
> Devo
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20071020/4=
aeb4f45/attachment.htm


More information about the Catalyst-dev mailing list