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::INCLUDE (3)

.ds Aq ’

    module_loaded

Return true if the module is loaded.

NAME

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

CONTENTS

DESCRIPTION

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.

METHODS

    format_content_order

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>



    format_content

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

    include <c> <url>

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

SEE ALSO

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

AUTHORS

Marcus Ramberg <mramberg@cpan.org>

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::INCLUDE (3) 2012-08-07

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