Dave Howorth:
>
> > I normally use a file extension on my templates so that vim can
> > recognize them and use appropriate colouring. I guess the same thing
> > goes for emacs users. So I'd like to change all the Maypole templates
> > to use a .tt extension. Apart from renaming the files and
> > INCLUDE/PROCESS cross-links, I would also need to change the code to
> > automatically add the extension to the template names computed from
> > URLs or hardwired into modules.
> >
> > Before I go dig around to find a good place, have I missed any issues?
> > Do other people think this is a good or bad idea?
You can override the template method in your controller class:
sub template {
my ($r, $template) = @_;
my $t = $r->_template_accessor($template);
return $t . '.tt'; # add .tt
}
I was hoping to spend some time this week documenting the public API. Been a
busy week at work, so will have to put that off until the weekend.
--simonflk
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT