Simon Flack wrote:
> sub template {
> my $r = shift;
> my $t = $r->_template_accessor(@_);
> return $t . '.tt'; # add .tt
> }
Thanks, Simon.
Sebastian Riedel wrote:
> There is no extension to make it view independent, Mason templates
> would look strange with a .tt ending, eh?
Mason templates look strange anyway :)
But yes, I was planning on introducing a template_extension config
variable, by analogy with template_root. So I guess the code becomes:
sub template {
my $r = shift;
my $t = $r->_template_accessor(@_);
my $ext = $r->{config}->{template_extension};
return $t . ($ext || '');
}
I'll give it a go as soon as it makes it to the top of my
next-thing-to-code list.
Cheers, Dave
_______________________________________________
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