Marcus Ramberg > MojoMojo-0.999029 > MojoMojo::Formatter::CPANHyperlink

Download:
MojoMojo-0.999029.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: MojoMojo-0.999042

NAME ^

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

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}}

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. The syntax for the CPANHyperlink plugin invocation is:

    {{cpan Some::Module}}

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

    {{cpan Some::Module /}}

SEE ALSO ^

MojoMojo and Module::Pluggable::Ordered.

AUTHORS ^

Dan Dascalescu, http://dandascalescu.com

LICENSE ^

This module is licensed under the same terms as Perl itself.