Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5828f878d8 | ||
|
|
f4beaf9864 |
@@ -1,6 +1,9 @@
|
|||||||
Revision history for Mojolicious::Plugin::TtRenderer
|
Revision history for Mojolicious::Plugin::TtRenderer
|
||||||
|
|
||||||
{{$NEXT}}
|
{{$NEXT}}
|
||||||
|
- Don't rely on English locale in the test t/tt_plugin_lite_app.t
|
||||||
|
|
||||||
|
1.29 December 18, 2012
|
||||||
- support multiple renderer paths
|
- support multiple renderer paths
|
||||||
|
|
||||||
1.28 October 11, 2012
|
1.28 October 11, 2012
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ sub not_found { @_ > 1 ? $_[0]->{not_found} = $_[1] : $_[0]->{not_found}
|
|||||||
sub _template_modified {
|
sub _template_modified {
|
||||||
my($self, $template) = @_;
|
my($self, $template) = @_;
|
||||||
return 1 if $self->SUPER::_template_modified($template);
|
return 1 if $self->SUPER::_template_modified($template);
|
||||||
return $template =~ /^templates(\/|\\)/;
|
return $template =~ /^templates(?:\/|\\)/;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub _template_content {
|
sub _template_content {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ my $t = Test::Mojo->new;
|
|||||||
# Simple TT template
|
# Simple TT template
|
||||||
$t->get_ok('/')->status_is(200)
|
$t->get_ok('/')->status_is(200)
|
||||||
->content_like(qr/test123456/);
|
->content_like(qr/test123456/);
|
||||||
$t->get_ok('/blow')->status_is(500)->content_like(qr/file error - doesnotexist.tt: No such file or directory/);
|
$t->get_ok('/blow')->status_is(500)->content_like(qr/file error - doesnotexist.tt:/);
|
||||||
|
|
||||||
if(eval q{ use Devel::Cycle; 1 })
|
if(eval q{ use Devel::Cycle; 1 })
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user