1 |
package Frey; |
package Frey; |
2 |
use Moose; |
use Moose; |
3 |
|
|
4 |
our $VERSION = "0.23"; |
our $VERSION = "0.25"; |
5 |
|
|
6 |
use Data::Dump qw//; |
use Data::Dump qw//; |
7 |
sub dump { ref(shift) . ' ' . Data::Dump::dump ( @_ ) } |
sub dump { |
8 |
|
my $self = shift; |
9 |
|
Data::Dump::dump( @_ ); |
10 |
|
} |
11 |
|
|
12 |
has 'debug' => ( |
has 'debug' => ( |
13 |
is => 'rw', |
is => 'rw', |
17 |
|
|
18 |
=head1 NAME |
=head1 NAME |
19 |
|
|
20 |
Frey - hi-level web framework in spirit of 4GLs |
Frey - hi-level web framework in spirit of 4GLs based on Moose |
21 |
|
|
22 |
=head1 DESCRIPTION |
=head1 DESCRIPTION |
23 |
|
|
24 |
n. Mythology. |
n. Mythology. |
25 |
|
|
26 |
The Norse god who dispenses peace, good weather, prosperity, and bountiful |
The Norse god who dispenses peace, good weather, prosperity, and bountiful |
27 |
crops; the brother of Freya. |
crops; the brother of Freya. |
28 |
|
|
29 |
Basically you write L<Moose> classes which become deirectly callable from |
Basically you write L<Moose> classes which become directly callable from |
30 |
the web using REST API |
the Firefox using REST API. for gentle intoduction see L<Frey::Manual>. |
|
|
|
|
=head1 INTROSPECTION |
|
|
|
|
|
Secondary goal is to have introspection. |
|
|
|
|
|
=head2 Moose classes |
|
|
|
|
|
All Moose classes have simple introspection API which use |
|
|
L<Frey::Introspect> to show class and it's pod (using L<Frey::Pod>). |
|
|
|
|
|
Example of valid REST URL is |
|
|
|
|
|
http://localhost:16001/Frey |
|
|
|
|
|
which will show L<Frey> class introspection. |
|
|
|
|
|
You can also add method invocation and optonal parametars to C<new> |
|
|
constructor like this: |
|
|
|
|
|
http://localhost:16001/Frey::Pod/as_markup?class=Frey |
|
|
|
|
|
this is same using L<Frey::Pod> from perl as |
|
|
|
|
|
Frey::Pod->new( class => 'Frey' )->as_markup; |
|
|
|
|
|
if you leave out parametars, L<Frey::Run> will ask for required ones. |
|
|
|
|
|
=head2 Database |
|
|
|
|
|
For database objects we support L<Fey> and when your objects are created |
|
|
C<< with 'Frey::Collection' >> they will have basic CRUD functionality |
|
|
implemented by L<Frey::ObjectBrowser>. |
|
31 |
|
|
32 |
=cut |
=cut |
33 |
|
|