fix for GH#36

This commit is contained in:
Graham Ollis
2013-04-11 15:42:20 -04:00
parent f22529d42e
commit 0faf79001b
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
Revision history for Mojolicious::Plugin::TtRenderer
{{$NEXT}}
- _template_modified returns value from super class instead of 1 if true (GH#36, Fayland Lam)
1.43 April 8, 2013
- promote development changes

View File

@@ -177,8 +177,7 @@ sub options { @_ > 1 ? $_[0]->{options} = $_[1] : $_[0]->{options} }
sub _template_modified {
my($self, $template) = @_;
return 1 if $self->SUPER::_template_modified($template);
return $template =~ /^templates(?:\/|\\)/;
$self->SUPER::_template_modified($template) || $template =~ /^templates(?:\/|\\)/;
}
sub _template_content {