--- trunk/lib/Frey.pm 2008/11/19 01:26:46 436 +++ trunk/lib/Frey.pm 2009/06/30 15:10:55 1133 @@ -1,60 +1,37 @@ package Frey; use Moose; -our $VERSION = "0.20"; +our $VERSION = "0.26"; + +use Data::Dump qw//; +sub dump { + my $self = shift; + Data::Dump::dump( @_ ); +} has 'debug' => ( is => 'rw', - isa => 'Bool', - default => 0, + isa => 'Int', + default => sub { $ENV{FREY_DEBUG} || 0 }, ); =head1 NAME -Frey - hi-level web framework in spirit of 4GLs +Frey - hi-level web framework in spirit of 4GLs based on Moose =head1 DESCRIPTION -n. Mythology. - -The Norse god who dispenses peace, good weather, prosperity, and bountiful -crops; the brother of Freya. - -Basically you write L classes which become deirectly callable from -the web using REST API - -=head1 INTROSPECTION - -Secondary goal is to have introspection. - -=head2 Moose classes - -All Moose classes have simple introspection API which use -L to show class and it's pod (using L). - -Example of valid REST URL is + n. Mythology. - http://localhost:16001/Frey + The Norse god who dispenses peace, good weather, prosperity, and bountiful + crops; the brother of Freya. -which will show L class introspection. - -You can also add method invocation and optonal parametars to C -constructor like this: - - http://localhost:16001/Frey::Pod/markup?class=Frey - -this is same using L from perl as - - Frey::Pod->new( class => 'Frey' )->markup; - -if you leave out parametars, L will ask for required ones. - -=head2 Database - -For database objects we support L and when your objects are created -C<< with 'Frey::Collection' >> they will have basic CRUD functionality -implemented by L. +Basically you write L classes which become directly callable from +the Firefox using REST API. for gentle intoduction see L. =cut +__PACKAGE__->meta->make_immutable; +no Moose; + 1;