Skip Menu |

This queue is for tickets about the Catalyst-View-Mason CPAN distribution.

Report information
The Basics
Id: 13883
Status: resolved
Priority: 0/
Queue: Catalyst-View-Mason

People
Owner: Nobody in particular
Requestors: daisuke [...] wafu.ne.jp
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07
Fixed in: (no value)



Subject: <%args> don't work under Catalyst::V::Mason
<%args>section does not work with Catalyst::V::Mason. IMHO the contents of $c->req->parameters need to be passed into $interp->exec(), not the contents of $c->stash. If you change line 113 of Catalyst::V::Mason to %{ $c->req->params }, Things work as expected.
It's done on purpose. We are using Mason as a templating system for Catalyst -- the CGI Parameters are handled before Mason gets executed. You still have access to the arguments via the global $c. Remember that you can do $c->stash->{foo} and get $foo in args. Also, this keeps compatibility with the Catalyst::V::TT implementation. That's a Catalyst guideline also - remember we are in Catalyst realm and not in Mason. I'll update a few things soon anyway.