From 2e2d5614733b80be8e398c6f2f061cc856b0a5cb Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Sun, 3 Jan 2016 14:21:25 +1000 Subject: [PATCH] + /comments/new --- lib/LDV.pm | 1 + templates/comments/new.html.ep | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 templates/comments/new.html.ep diff --git a/lib/LDV.pm b/lib/LDV.pm index 109da05..6747490 100644 --- a/lib/LDV.pm +++ b/lib/LDV.pm @@ -41,6 +41,7 @@ sub startup { my $comm = $r->route('/comments') -> to(controller => 'comments'); $comm->post('/add') ->to(action => 'add'); $comm->get ('/get') ->to(action => 'get'); + $comm->get ('/new') ->to(action => 'new'); mkdir $self->app->home->rel_dir('data/comments'); } diff --git a/templates/comments/new.html.ep b/templates/comments/new.html.ep new file mode 100644 index 0000000..fec4802 --- /dev/null +++ b/templates/comments/new.html.ep @@ -0,0 +1,8 @@ +% my $pageid = stash('pageid') || ''; +
+
+ +
+ + +