Gapp::App::Role::HasComponents - Role for app with components
package Foo::App; use Moose; extends 'Gapp::App'; with 'Gapp::App::Role::HasComponents'; sub BUILD { ( $self ) = @_; $com = .... ; # your custom component here $self->register_component( 'foo', $com ); } package main; $app = Foo::App->new; $app->com('foo')->browser->show_all;
Applications built using components are highly extensible.
Returns the component object registered with the given $name.
$name
Register the component with the application.
Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>
Copyright (c) 2012 Jeffrey Ray Hallock.
This is free software, licensed under: The Artistic License 2.0 (GPL Compatible)
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Gapp::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gapp::App
CPAN shell
perl -MCPAN -e shell install Gapp::App
For more information on module installation, please visit the detailed CPAN module installation guide.