diff --git a/Changes b/Changes index 4159c62..94d4f2c 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/lib/Mojolicious/Plugin/TtRenderer/Engine.pm b/lib/Mojolicious/Plugin/TtRenderer/Engine.pm index 9f17ead..e3eb0f9 100644 --- a/lib/Mojolicious/Plugin/TtRenderer/Engine.pm +++ b/lib/Mojolicious/Plugin/TtRenderer/Engine.pm @@ -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 {