On Mon, Mar 4, 2013 at 9:00 PM, Tomas Doran <[email protected]> wrote:

>
> On 4 Mar 2013, at 22:59, E R <[email protected]> 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} = '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.
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to