diff --git a/PostText.pl b/PostText.pl index 6f9d19c..3cedec3 100755 --- a/PostText.pl +++ b/PostText.pl @@ -5,8 +5,11 @@ use Mojolicious::Lite -signatures; -get '/', sub ($c) { - $c->render(text => 'ayy... lmao') +# Root redirect +get '/', sub ($c) { $c->redirect_to('view') }; + +get '/view', sub ($c) { + $c->render() }; app->start(); diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep index e69de29..9f3061e 100644 --- a/templates/layouts/main.html.ep +++ b/templates/layouts/main.html.ep @@ -0,0 +1,10 @@ + + + + Post::Text - <%= title %> + + +

Post::Text

+<%= content %> + + diff --git a/templates/view.html.ep b/templates/view.html.ep new file mode 100644 index 0000000..069175b --- /dev/null +++ b/templates/view.html.ep @@ -0,0 +1,4 @@ +% layout 'main'; +% title 'View Threads'; +

<%= title %>

+

Some threads here...