From 0faf79001bd1eaa8dc75dc3b250c00804fe90858 Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Thu, 11 Apr 2013 15:42:20 -0400 Subject: [PATCH] fix for GH#36 --- Changes | 1 + lib/Mojolicious/Plugin/TtRenderer/Engine.pm | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {