1 |
package Frey; |
package Frey; |
2 |
use Moose; |
use Moose; |
3 |
|
|
4 |
our $VERSION = "0.24"; |
our $VERSION = "0.25"; |
5 |
|
|
6 |
use Data::Dump qw//; |
use Data::Dump qw//; |
7 |
sub dump { |
sub dump { |
8 |
my ($self,$data) = @_; |
my $self = shift; |
9 |
Data::Dump::dump( $data ); |
Data::Dump::dump( @_ ); |
10 |
} |
} |
11 |
|
|
12 |
has 'debug' => ( |
has 'debug' => ( |
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 |
|
|
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 Firefox using REST API. for gentle intoduction see L<Frey::Manual>. |
the Firefox using REST API. for gentle intoduction see L<Frey::Manual>. |
31 |
|
|
|
This is just brief overview of concepts so you might check if they suite you |
|
|
before you get into details. |
|
|
|
|
|
=head1 Developer parts |
|
|
|
|
|
=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; |
|
|
|
|
|
Forms to enter required parameters will be generated automatically, |
|
|
allowing you to explore your data while you are making interface for it. |
|
|
|
|
|
=head2 Database |
|
|
|
|
|
FIXME broken if not noted in C<TODO> |
|
|
|
|
|
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>. |
|
|
|
|
|
=head1 User parts |
|
|
|
|
|
=head2 Pipes |
|
|
|
|
|
See L<Frey::Pipe> for now. |
|
|
|
|
|
=head1 SEE ALSO |
|
|
|
|
|
L<Frey::Manual> |
|
|
|
|
32 |
=cut |
=cut |
33 |
|
|
34 |
1; |
1; |