diff --git a/Changes b/Changes index 0856b82..e9e0921 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Mojolicious::Plugin::TtRenderer {{$NEXT}} + +1.29 December 18, 2012 - support multiple renderer paths 1.28 October 11, 2012 diff --git a/lib/Mojolicious/Plugin/TtRenderer/Engine.pm b/lib/Mojolicious/Plugin/TtRenderer/Engine.pm index a20a598..2e63122 100644 --- a/lib/Mojolicious/Plugin/TtRenderer/Engine.pm +++ b/lib/Mojolicious/Plugin/TtRenderer/Engine.pm @@ -160,7 +160,7 @@ sub not_found { @_ > 1 ? $_[0]->{not_found} = $_[1] : $_[0]->{not_found} sub _template_modified { my($self, $template) = @_; return 1 if $self->SUPER::_template_modified($template); - return $template =~ /^templates(\/|\\)/; + return $template =~ /^templates(?:\/|\\)/; } sub _template_content {