[Catalyst] Patch for Catalyst::View::Mason

Florian Ragwitz rafl at debian.org
Fri Mar 7 21:22:26 GMT 2008


On Fri, Mar 07, 2008 at 10:10:25PM +0100, David Jack Wange Olrik wrote:
>
> On 07/03/2008, at 19.26, Jonathan Rockway wrote:
>
> >To do what David wanted would have to use a heuristic to determine
> >whether $c->stash->{template} is the actual template name, or the
> >template name minus the extension. By definition, that's never going
> >to work.
>
> No need to do any heuristics, you could just decide that you always
> supply the template without extention and let the View module add it.
> (But this change will indeed break all existing apps unless some
> heuristics are applied, and that is not sane).

I want to keep the default behaviour to not break existing code and to
be consistent with most other catalyst views.

However I'll think about implementing a new configuration option that,
when enabled, will always append template_extension.


-Flo

-- 
BOFH excuse #189:
SCSI's too wide.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080307/0634111c/attachment.pgp


More information about the Catalyst mailing list