DOKK / manpages / debian 10 / libmojomojo-perl / MojoMojo::Formatter::Include.3pm.en
MojoMojo::Formatter::Include(3pm) User Contributed Perl Documentation MojoMojo::Formatter::Include(3pm)

Return true if the module is loaded.

MojoMojo::Formatter::Include - Include files in your content.

Include files verbatim in your content, by writing {{include <url>}}. Can be used for transclusion from the same wiki, in which case the inline version of the page is pulled.

Format order can be 1-99. The Include formatter runs on 5, before all formatters (except Redirect), so that included content (most often from the same wiki) can be parsed for markup. To avoid markup interpretation, surround the {{include <url>}} with a "<div>":

    <div>Some uninterpreted Markdown: {{include http://mysite.com/rawmarkdown.txt}}</div>

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

Returns the content at the URL. Will store a cached version in "$c->cache".

MojoMojo, Module::Pluggable::Ordered, URI::Fetch

Marcus Ramberg <mramberg@cpan.org>

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

2018-01-13 perl v5.26.1