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') || ''; +
+
+ +
+ + +