[Catalyst] populating stash via action attributes

Michael Reece mreece at vinq.com
Thu Feb 15 00:40:08 GMT 2007



i am trying to do something along the lines of:

sub foo : Local HelloWorld {
   my ($self, $c) = @_;

   $c->res->body( $c->stash->{hello} );	# was already set to 'world'  
because of attribute HelloWorld
}


is this possible?  any tutorials around that deal with such things?





More information about the Catalyst mailing list