use non-capturing for performance
This commit is contained in:
2
Changes
2
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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user