Permalink
Browse files

skeleton

  • Loading branch information...
typester committed Dec 1, 2009
0 parents commit 1a4be88ff86e87bf585b7fe696a4e0ee2e5e685d
Showing with 42 additions and 0 deletions.
  1. +12 −0 Makefile.PL
  2. +6 −0 lib/Jobeet.pm
  3. +19 −0 lib/Jobeet/Controller/Root.pm
  4. +4 −0 t/00_compile.t
  5. +1 −0 tmp/.gitignore
@@ -0,0 +1,12 @@
+use inc::Module::Install;
+name 'Jobeet';
+all_from 'lib/Jobeet.pm';
+
+requires 'Ark';
+
+tests 't/*.t';
+
+build_requires 'Test::More';
+use_test_base;
+auto_include;
+WriteAll;
@@ -0,0 +1,6 @@
+package Jobeet;
+use Ark;
+
+our $VERSION = '0.01';
+
+1;
@@ -0,0 +1,19 @@
+package Jobeet::Controller::Root;
+use Ark 'Controller';
+
+has '+namespace' => default => '';
+
+# default 404 handler
+sub default :Path :Args {
+ my ($self, $c) = @_;
+
+ $c->res->status(404);
+ $c->res->body('404 Not Found');
+}
+
+sub index :Path :Args(0) {
+ my ($self, $c) = @_;
+ $c->res->body('Ark Default Index');
+}
+
+1;
@@ -0,0 +1,4 @@
+use strict;
+use Test::More tests => 1;
+
+BEGIN { use_ok 'Jobeet' }
@@ -0,0 +1 @@
+*

0 comments on commit 1a4be88

Please sign in to comment.