diff --git a/README.pod b/README.pod index 14efeb2..9363620 100644 --- a/README.pod +++ b/README.pod @@ -46,16 +46,10 @@ L example: package MyApp; use Mojo::Base 'Mojolicious'; - # This method will run once at server start sub startup { my $self = shift; - $self->plugin('tt_renderer'); - - # Router my $r = $self->routes; - - # Normal route to controller $r->get('/')->to('example#welcome'); } @@ -68,9 +62,9 @@ L example: sub welcome { my $self = shift; - # Render template "example/welcome.html.ep" with message + # Render template "example/welcome.html.tt" with message $self->render( - message => 'Welcome to the Mojolicious real-time web framework!'); + message => 'Looks like your TtRenderer is working!'); } 1; diff --git a/example/myapp/lib/MyApp.pm b/example/myapp/lib/MyApp.pm index d9eafcb..67b895d 100644 --- a/example/myapp/lib/MyApp.pm +++ b/example/myapp/lib/MyApp.pm @@ -1,16 +1,10 @@ package MyApp; use Mojo::Base 'Mojolicious'; -# This method will run once at server start sub startup { my $self = shift; - $self->plugin('tt_renderer'); - - # Router my $r = $self->routes; - - # Normal route to controller $r->get('/')->to('example#welcome'); } diff --git a/example/myapp/lib/MyApp/Example.pm b/example/myapp/lib/MyApp/Example.pm index a84ae83..2b80616 100644 --- a/example/myapp/lib/MyApp/Example.pm +++ b/example/myapp/lib/MyApp/Example.pm @@ -5,9 +5,9 @@ use Mojo::Base 'Mojolicious::Controller'; sub welcome { my $self = shift; - # Render template "example/welcome.html.ep" with message + # Render template "example/welcome.html.tt" with message $self->render( - message => 'Welcome to the Mojolicious real-time web framework!'); + message => 'Looks like your TtRenderer is working!'); } 1;