Padre::Browser - Online Linux Manual PageSection : 3
Updated : 2021-01-27
Source : perl v5.32.1
Note : User Contributed Perl Documentation

NAMEPadre::Browser −− documentation browser for Padre

DESCRIPTIONProvide 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

newBoring constructor, pass nothing. Yet.

load_providerAccepts 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_viewerAccepts 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.

resolveAccepts 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; ​ ​ }
0
Johanes Gumabo
Data Size   :   9,655 byte
man-Padre::Browser.3pmBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 172,874
Visitor ID   :     :  
Visitor IP   :   3.147.46.174   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|Padre::Browser.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Padre::Browser.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|Padre::Browser.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|149|Padre::Browser.3pm|43|'br══─}─══ |'br══─}─══ )