Permalink
Browse files

renamed WebNano::TTTRenderer to WebNano::Renderer::TTiny

  • Loading branch information...
1 parent edfe5b0 commit 791c6049af535b59915ed9f8dfafd6aeade33b7a Zbigniew Lukasiak committed Aug 14, 2010
View
4 examples/DvdDatabase/lib/DvdDatabase.pm
@@ -4,7 +4,7 @@ use MooseX::NonMoose;
extends 'WebNano';
use Config::Any;
use DvdDatabase::DBSchema;
-use WebNano::TTTRenderer;
+use WebNano::Renderer::TTiny;
has config => ( is => 'ro', isa => 'HashRef', lazy_build => 1 );
@@ -25,7 +25,7 @@ has renderer => ( is => 'ro', lazy_build => 1 );
sub _build_renderer {
my $self = shift;
my $config = $self->config->{renderer};
- return WebNano::TTTRenderer->new( %$config );
+ return WebNano::Renderer::TTiny->new( %$config );
}
sub get_config {
View
4 examples/myapp/MyApp.pm
@@ -3,12 +3,12 @@ use warnings;
package MyApp;
use base 'WebNano';
-use WebNano::TTTRenderer;
+use WebNano::Renderer::TTiny;
sub new {
my $class = shift;
my $self = $class->SUPER::new( @_ );
- $self->renderer( WebNano::TTTRenderer->new( root => 'templates' ) );
+ $self->renderer( WebNano::Renderer::TTiny->new( root => 'templates' ) );
return $self;
}
View
4 extensions/WebNano-Controller-CRUD/t/lib/MyApp.pm
@@ -4,7 +4,7 @@ use MooseX::NonMoose;
extends 'WebNano';
use Config::Any;
use MyApp::DBSchema;
-use WebNano::TTTRenderer;
+use WebNano::Renderer::TTiny;
has config => ( is => 'ro', isa => 'HashRef', lazy_build => 1 );
@@ -25,7 +25,7 @@ has renderer => ( is => 'ro', lazy_build => 1 );
sub _build_renderer {
my $self = shift;
my $config = $self->config->{renderer};
- return WebNano::TTTRenderer->new( %$config );
+ return WebNano::Renderer::TTiny->new( %$config );
}
sub get_config {
View
2 lib/WebNano/TTTRenderer.pm → lib/WebNano/Renderer/TTiny.pm
@@ -1,4 +1,4 @@
-package WebNano::TTTRenderer;
+package WebNano::Renderer::TTiny;
use strict;
use warnings;
View
4 t/10.main.t
@@ -4,9 +4,9 @@ use HTTP::Request::Common;
use lib 't/lib';
use MyApp;
use File::Copy;
-use WebNano::TTTRenderer;
+use WebNano::Renderer::TTiny;
-my $dt = WebNano::TTTRenderer->new( root => 't/data/templates' );
+my $dt = WebNano::Renderer::TTiny->new( root => 't/data/templates' );
my $rendered;
$dt->render( template => 'dummy_template', vars => { some_var => 'some value' }, output => \$rendered );
ok( $rendered =~ /some_var: some value/, 'vars' );
View
2 t/11.subclass.t
@@ -4,7 +4,7 @@ use HTTP::Request::Common;
use lib 't/lib';
use SubClassApp;
use File::Copy;
-use WebNano::TTTRenderer;
+use WebNano::Renderer::TTiny;
test_psgi(
app => SubClassApp->new()->psgi_callback,
View
4 t/lib/MyApp.pm
@@ -5,7 +5,7 @@ package MyApp;
use base 'WebNano';
use Object::Tiny::RW 'config';
use Config::Any;
-use WebNano::TTTRenderer;
+use WebNano::Renderer::TTiny;
sub new {
my $class = shift;
@@ -14,7 +14,7 @@ sub new {
my @values = values %{$cfg->[0]};
my $config = $values[0];
$self->config( $config );
- $self->renderer( WebNano::TTTRenderer->new( %{ $config->{renderer} } ) );
+ $self->renderer( WebNano::Renderer::TTiny->new( %{ $config->{renderer} } ) );
return $self;
}

0 comments on commit 791c604

Please sign in to comment.