GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MOJOMOJO::FORMATTER::CPANHYPERLINK (3)

.ds Aq ’

NAME

MojoMojo::Formatter::CPANHyperlink - automatically hyperlink CPAN modules when using the syntax {{cpan Some::Module}}

CONTENTS

DESCRIPTION

Normally, to hyperlink to a CPAN module, you’d write:



    [MojoMojo::Formatter::CPANHyperlink](http://search.cpan.org/perldoc?MojoMojo::Formatter::CPANHyperlink)



This plugin lets you write just



    {{cpan MojoMojo::Formatter::CPANHyperlink}}



Just like POD, it supports adding a section after the module name:



    {{cpan Catalyst::Manual::Cookbook/Deployment}}



will create a link to



    http://search.cpan.org/perldoc?Catalyst::Manual::Cookbook#Deployment



Sections can contain any characters, except two consecutive closed braces:



    {{cpan Catalyst::Test/($res, $c) = ctx request( ... ); }}



will link to



    http://search.cpan.org/perldoc?Catalyst::Test#($res,_$c)_=_ctx_request(_..._);



In anticipation of future plugin syntax, you can optionally add a trailing slash



    {{cpan Some::Module/Section /}}



METHODS

    format_content_order

The CPANHyperlink formatter has no special requirements in terms of the order it gets run in, so it has a priority of 10.

    format_content

Calls the formatter. Takes a ref to the content as well as the context object.

SEE ALSO

MojoMojo and Module::Pluggable::Ordered.

AUTHORS

Dan Dascalescu, <http://dandascalescu.com>

LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MOJOMOJO::FORMATTER::CPANHYPERLINK (3) 2010-04-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.