MasonX::Resolver::WidgetFactory - resolve paths to HTML::Widget::Factory plugins
Version 0.002
use MasonX::Resolver::WidgetFactory; my $res = MasonX::Resolver::WidgetFactory->new( factory => My::Widget::Factory->new, prefix => '/widget', ); my $interp = HTML::Mason::Interp->new( resolver => $res, # ... other options ... );
This Resolver exposes the plugins of a HTML::Widget::Factory object as virtual components under a given prefix.
For example:
my $res = MasonX::Resolver::WidgetFactory->new( prefix => '/widget', ); # elsewhere: <& /widget/select, name => "myselect", options => \@options &>
The component call to /widget/select is translated to $factory->select(...arguments...).
/widget/select
$factory->select(...arguments...)
The component path root under which to respond.
The HTML::Widget::Factory object to use. Defaults to a new HTML::Widget::Factory object.
Hans Dieter Pearcey, <hdp at pobox.com>
<hdp at pobox.com>
Please report any bugs or feature requests to bug-masonx-resolver-widgetfactory at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MasonX-Resolver-WidgetFactory. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-masonx-resolver-widgetfactory at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc MasonX::Resolver::WidgetFactory
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MasonX-Resolver-WidgetFactory
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/MasonX-Resolver-WidgetFactory
CPAN Ratings
http://cpanratings.perl.org/d/MasonX-Resolver-WidgetFactory
Search CPAN
http://search.cpan.org/dist/MasonX-Resolver-WidgetFactory
Copyright 2008 Hans Dieter Pearcey.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MasonX::Resolver::WidgetFactory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MasonX::Resolver::WidgetFactory
CPAN shell
perl -MCPAN -e shell install MasonX::Resolver::WidgetFactory
For more information on module installation, please visit the detailed CPAN module installation guide.