MojoMojo::Formatter::Dir(3pm)

MojoMojo::Formatter::Dir3pm

Format local directory as xhtml

Overview

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

Releases

5 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10

Authors

Daniel Brosseau <[email protected]>

License

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

From libmojomojo-perl 1.12+dfsg-1 in Debian 10 (Buster). Parsed by carta from the page's man source.