[Catalyst] Overriding Catalyst::View::TT WRAPPER
hernanlopes at gmail.com
Tue Nov 30 02:37:52 GMT 2010
I personally think that [% IF no_wrapper %] etc is not clean enough so
i would create a new view and call it View::NoWrapper
then you can set
current_view =3D> 'NoWrapper',
template =3D> 'src/mypage.html',
and then, you will need to set a wrapper.tt.
But you can choose to leave it with [% content %] only, or add some html
headers.. or whatever you need.
On Mon, Nov 29, 2010 at 11:27 PM, Sam Kaufman <samuel.c.kaufman at gmail.com>w=
> I've found the easiest way is to have some logic in your wrapper:
> something like this:
> IF no_wrapper;
> content WRAPPER site/html + site/layout;
> so $c->stash(no_wrapper =3D> 1) and it won't be wrapped.
> On Mon, Nov 29, 2010 at 8:16 PM, Mesdaq, Ali <amesdaq at websense.com> wrote:
> > Hey Everyone,
> > Got a question about how I can override my application's TT wrapper. The
> closest thing I found was
lib/Catalyst/View/TT.pm#CONFIGURATION>. But what I am trying to do is basic=
ally have the wrapper turned off for a
> specific public method where I will create a new TT file that I want used
> without it being wrapped.
> > Thanks,
> > ALI MESDAQ
> > Sr. Security Researcher
> > WEBSENSE, INC.
> > ph: +1.858.320.9466
> > fax: +1.858.784.4466
> > www.websense.com
> > Websense TRITON=99
> > For Essential Information Protection=99
> > Web Security | Data Security | Email Security
> > Protected by Websense Hosted Email Security -- www.websense.com
> > _______________________________________________
> > List: Catalyst at lists.scsys.co.uk
> > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> > Searchable archive:
> > Dev site: http://dev.catalyst.perl.org/
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst