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

David Jack Wange Olrik david at olrik.dk
Fri Mar 7 21:10:25 GMT 2008


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).

-- 
Best regards,
David Jack Olrik <david at olrik.dk>             http://david.olrik.dk
GnuPG fingerprint C290 0A4A 0CCC CBA8 2B37 E18D 01D2 F6EF 2E61 9894
["The first rule of Perl club is  You do not talk about Perl club"]




More information about the Catalyst mailing list