fixed missed Changes date, bumped version
[catagits/CatalystX-Declare.git] / lib / CatalystX / Declare.pm
index 82dc28f..2bebadd 100644 (file)
@@ -8,12 +8,12 @@ class CatalystX::Declare extends MooseX::Declare is dirty {
 
     clean;
 
-    our $VERSION = '0.001';
+    our $VERSION = '0.002';
 
     around keywords {
         $self->$orig,
         ControllerKeyword->new(identifier => 'controller'),
-        RoleKeyword->new(identifier => 'controller_role'),
+        RoleKeyword->new(identifier => 'component_role'),
         ApplicationKeyword->new(identifier => 'application'),
     }
 }
@@ -55,7 +55,7 @@ CatalystX::Declare - EXPERIMENTAL Declarative Syntax for Catalyst Applications
         method _build_welcome_message { 'Welcome' }
         
         
-        action base as '';
+        action base under '/' as '';
         
         under base {
             
@@ -69,7 +69,7 @@ CatalystX::Declare - EXPERIMENTAL Declarative Syntax for Catalyst Applications
 
     use CatalystX::Declare;
 
-    controller_role MyApp::Web::ControllerRole::Bar {
+    component_role MyApp::Web::ControllerRole::Bar {
 
         use MyApp::Types qw( Username );
 
@@ -140,7 +140,7 @@ declarations. This allows for constructs such as:
 
     controller MyApp::Web::Controller::Baz {
 
-        final action qux { 
+        final action qux under '/' { 
             $ctx->response->body(Foo->new->bar) 
         }
     }