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

Devo Coran devincoran at yahoo.com
Mon Oct 22 05:29:43 GMT 2007


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


Ahh yes of course, thanks still getting used to this.

Devo





--- Oleg Pronin <syber.rus at gmail.com> wrote:


> 
> 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        => 'config/main',
> >    WRAPPER            => '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
> >
> > _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.scsys.co.uk
>
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Catalyst-dev mailing list