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

.ds Aq ’

NAME

MojoMojo::Formatter::Dir - format local directory as XHTML

CONTENTS

DESCRIPTION

This formatter will format the directory argument as XHTML. Usage:



    {{dir directory exclude=exclude_regex}}



For security reasons the directory must be include in ’whitelisting’. You can use path_to(DIR) to describe directory in mojomojo.conf:

<Formatter::Dir>
prefix_url /myfiles
whitelisting __path_to(uploads)__ </Formatter::Dir>

METHODS

format_content_order Format order can be 1-99. The File formatter runs on 92.
format_content Calls the formatter. Takes a ref to the content as well as the context object.
format Return the content formatted
to_xhtml Return Directory and files lists in xhtml
checkdir Directory must be include in whitelisting

SEE ALSO

MojoMojo

AUTHORS

Daniel Brosseau <dab@catapulse.org>

LICENSE

This module is licensed 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::DIR (3) 2010-05-23

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