[Catalyst] ActionClass('RenderView') questions

E R pc88mxer at gmail.com
Tue Mar 5 16:12:56 GMT 2013


That answers my question - thanks!


On Tue, Mar 5, 2013 at 9:12 AM, John Napiorkowski <jjn1056 at yahoo.com> wrote:

>
>
>
>   ------------------------------
> *From:* E R <pc88mxer at gmail.com>
> *To:* The elegant MVC web framework <catalyst at lists.scsys.co.uk>
> *Sent:* Tuesday, March 5, 2013 9:46 AM
> *Subject:* Re: [Catalyst] ActionClass('RenderView') questions
>
>
>
>
> On Mon, Mar 4, 2013 at 9:00 PM, Tomas Doran <bobtfish at bobtfish.net> wrote:
>
>
> On 4 Mar 2013, at 22:59, E R <pc88mxer at gmail.com> wrote:
> >
> > Also, what does it mean if $c->stash->{template} is undef at this point?
>
> Maybe :)
>
>
> My use case is that I am developing a second view class, but it can't
> handle all of the templates yet. So the logic I am putting into the end
> method is:
>
>   if (View2 can handle template $c->stash->{template}) {
>     $c->stash->{current_view} =3D 'View2';
>   }
>
> This way I can incrementally test View2 as I add capabilities to it.
>
> I need to know what it means when $c->stash->{template} is undef. If it is
> only undef when there are redirects then I can safely ignore that case.
>
> the template stash var is a convention that informs the view (several
> views support it) what template to use, or to use the default behavior,
> whatever that happens to be.  For the TT view, if that stash var is not
> defined, it guesses a template based on the action name.
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> 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:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20130305/3c343=
c89/attachment.htm


More information about the Catalyst mailing list