#
# This file is part of CatalystX-ExtJS-Direct
#
# This software is Copyright (c) 2014 by Moritz Onken.
#
# This is free software, licensed under:
#
# The (three-clause) BSD License
#
package CatalystX::ExtJS::Direct;
# ABSTRACT: Enable Ext.Direct in Catalyst controllers
$CatalystX::ExtJS::Direct::VERSION = '2.1.5';
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
CatalystX::ExtJS::Direct - Enable Ext.Direct in Catalyst controllers
=head1 VERSION
version 2.1.5
=head1 SYNOPSIS
package MyApp::Controller::API;
use Moose;
extends 'CatalystX::Controller::ExtJS::Direct::API';
package MyApp::Controller::Calculator;
use Moose;
BEGIN { extends 'Catalyst::Controller' };
with 'CatalystX::Controller::ExtJS::Direct';
sub sum : Local : Direct : DirectArgs(1) {
my ($self, $c) = @_;
$c->res->body( $c->req->param('a') + $c->req->param('b') );
}
1;
In your web application:
// Load ExtJS classes here
=head1 DESCRIPTION
This module makes the transition to Ext.Direct dead simple.
Have a look at the L
which gives you a few examples on how to use this module.
L is responsible for
providing the API to the ExtJS application. Some configuration
can be done here.
=head1 SEE ALSO
=over 4
=item L
Parent namespace. Includes examples and the code for the tutorial.
=item L
Add feature-rich REST controllers to your application.
=back
=head1 AUTHOR
Moritz Onken
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2014 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License
=cut