Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

padre::browser(3pm) [debian man page]

Padre::Browser(3pm)					User Contributed Perl Documentation				       Padre::Browser(3pm)

NAME
Padre::Browser -- documentation browser for Padre DESCRIPTION
Provide an interface for retrieving / generating documentation, resolving terms to documentation (search?) and formatting documentation. Allow new packages to be loaded and interrogated for the MIME types they can generate documentation for. Provide similar mechanism for registering new documentation viewers and URI schemes accepted for resolving. NOTE: I think all the method names are wrong. Blast it. SYNOPSIS
# Does perlish things by default via 'Padre::Browser::POD' my $browser = Padre::Browser->new; my $source = Padre::Document->new( filename=>'source/Package.pm' ); my $docs = $browser->docs( $source ); # $docs provided by Browser::POD->generate # should be Padre::Browser::Document , application/x-pod my $output = $browser->browse( $docs ); # $output provided by Browser::POD->render # should be Padre::Document , text/x-html $browser->load_viewer( 'Padre::Browser::PodAdvanced' ); # PodAdvanced->render might add an html TOC in addition to # just pod2html my $new_output = $browser->browse( $docs ); # $new_output now with a table of contents METHODS
new Boring constructor, pass nothing. Yet. load_provider Accepts a single class name, will attempt to auto-use the class and interrogate its "provider_for" method. Any MIME types returned will be associated with the class for dispatch to "generate". Additionally, interrogate class for "accept_schemes" and associate the class with URI schemes for dispatch to "resolve". load_viewer Accepts a single class name, will attempt to auto-use the class and interrogate its "viewer_for" method. Any MIME types returned will be associated with the class for dispatch to "render". resolve Accepts a URI or scalar browse accept EXTENDING
package My::Browser::Doxygen; # URI of doxygen:$string or doxygen://path?query sub accept_schemes { 'doxygen', } sub provider_for { 'text/x-c++src' } sub viewer_for { 'text/x-doxygen', } sub generate { my ($self,$doc) = @_; # $doc will be Padre::Document of any type specified # by ->provider_for # push $doc through doxygen # ... # that was easy :) # You know your own output type, be explicit my $response = Padre::Document->new; $response->{original_content} = $doxygen->output; $response->set_mimetype( 'text/x-doxygen' ); return $response; } sub render { my ($self,$docs) = @_; # $docs will be of any type specified # by ->viewer_for; ## turn $docs into doxygen(y) html document # ... # my $response = Padre::Document->new; $response->{original_content} = $doxy2html->output; $response->set_mimetype( 'text/x-html' ); return $response; } perl v5.14.2 2012-06-27 Padre::Browser(3pm)

Check Out this Related Man Page

Padre::Plugin::Autoformat(3pm)				User Contributed Perl Documentation			    Padre::Plugin::Autoformat(3pm)

NAME
Padre::Plugin::Autoformat - Reformats your text within Padre VERSION
version 1.22 SYNOPSIS
$ padre Ctrl+Shift+J DESCRIPTION
This plugin allows one to reformat her text automatically with Ctrl+Shift+J. It is using "Text::Autoformat" underneath, so check this module's pod for more information. PUBLIC METHODS
Standard Padre::Plugin API Padre::Plugin::Autoformat defines a plugin which follows Padre::Plugin API. Refer to this module's documentation for more information. The following methods are implemented: menu_plugins_simple() padre_interfaces() plugin_icon() plugin_name() Formatting methods o autoformat() Replace the current selection with its autoformatted content. BUGS
Please report any bugs or feature requests to "padre-plugin-autoformat at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Padre-Plugin-Autoformat <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Padre-Plugin- Autoformat>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SEE ALSO
Plugin icon courtesy of Mark James, at <http://www.famfamfam.com/lab/icons/silk/>. You can also look for information on this module at: o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/Padre-Plugin-Autoformat <http://annocpan.org/dist/Padre-Plugin-Autoformat> o CPAN Ratings http://cpanratings.perl.org/d/Padre-Plugin-Autoformat <http://cpanratings.perl.org/d/Padre-Plugin-Autoformat> o Open bugs http://rt.cpan.org/NoAuth/Bugs.html?Dist=Padre-Plugin-Autoformat <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Padre-Plugin-Autoformat> AUTHORS
o Jerome Quelin <jquelin@gmail.com> o Ahmad M. Zawawi <ahmad.zawawi@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Jerome Quelin. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-02-04 Padre::Plugin::Autoformat(3pm)
Man Page