diff --git a/app.pl b/app.pl index 357aed1..827cce9 100755 --- a/app.pl +++ b/app.pl @@ -8,6 +8,11 @@ use Data::Dumper; use DBI; use Mojolicious::Lite; +use Mojolicious::Plugin::TtRenderer; + +plugin 'tt_renderer'; +app->renderer->default_handler( 'tt' ); +app->renderer->paths( [ './tt' ] ); my $dbh = DBI->connect("dbi:SQLite:dbname=pastes.db", "", "", {RaiseError => 1}); # hardcode some channels first @@ -58,126 +63,3 @@ get '/pastebin/:pasteid' => sub { app->start; -__DATA__ - -@@ editor.html.ep - - - -
- - - - - - - - - - - -