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 go one stranger. No extensions ever. Instead, I rely on directories assuming I might switch.

templates/tt/controller/action
templates/mason/controller/action

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
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