rm not_found, as it is no longer used.
This commit is contained in:
1 parent
d4902f8bf0
commit
0e4337955d
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,8 @@
|
|||||||
Revision history for Mojolicious::Plugin::TtRenderer
|
Revision history for Mojolicious::Plugin::TtRenderer
|
||||||
|
|
||||||
{{$NEXT}}
|
{{$NEXT}}
|
||||||
|
|
||||||
|
1.35 December 30, 2012
|
||||||
- Documentation fix
|
- Documentation fix
|
||||||
|
|
||||||
1.34 December 29, 2012
|
1.34 December 29, 2012
|
||||||
|
|||||||
@@ -171,7 +171,6 @@ sub new {
|
|||||||
sub renderer { @_ > 1 ? $_[0]->{renderer} = $_[1] : $_[0]->{renderer} }
|
sub renderer { @_ > 1 ? $_[0]->{renderer} = $_[1] : $_[0]->{renderer} }
|
||||||
sub ctx { @_ > 1 ? $_[0]->{ctx} = $_[1] : $_[0]->{ctx} }
|
sub ctx { @_ > 1 ? $_[0]->{ctx} = $_[1] : $_[0]->{ctx} }
|
||||||
sub options { @_ > 1 ? $_[0]->{options} = $_[1] : $_[0]->{options} }
|
sub options { @_ > 1 ? $_[0]->{options} = $_[1] : $_[0]->{options} }
|
||||||
sub not_found { @_ > 1 ? $_[0]->{not_found} = $_[1] : $_[0]->{not_found} }
|
|
||||||
|
|
||||||
sub _template_modified {
|
sub _template_modified {
|
||||||
my($self, $template) = @_;
|
my($self, $template) = @_;
|
||||||
@@ -199,7 +198,6 @@ sub _template_content {
|
|||||||
# Try DATA section
|
# Try DATA section
|
||||||
if(defined $options) {
|
if(defined $options) {
|
||||||
$data = $self->renderer->get_data_template($options);
|
$data = $self->renderer->get_data_template($options);
|
||||||
$self->not_found(1) unless defined $data;
|
|
||||||
} else {
|
} else {
|
||||||
my $loader = Mojo::Loader->new;
|
my $loader = Mojo::Loader->new;
|
||||||
foreach my $class (@{ $self->renderer->classes }) {
|
foreach my $class (@{ $self->renderer->classes }) {
|
||||||
|
|||||||
Reference in new issue
Block a user