The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Ado::Control::Articles - display markdown documents.

SYNOPSIS

  #in your browser go to
  http://your-host/articles

DESCRIPTION

Ado::Control::Articles is a controller that generates full static HTML documents for markdown files found in the folder specified in md_articles_root in etc/plugins/markdown_renderer.$mode.conf. It allows you to have a simple static blog on Ado in no time, i.e. install Ado and you have a personal blog.

METHODS/ACTIONS

Ado::Control::Articles inherits all the methods from Ado::Control and defines the following.

show

Renders the file found in $c->stash('html_file') but with extension .md. If $config->{md_reuse_produced_html} is set, the produced html file is saved in $config->{md_articles_root}. This way the next time the resource is requested Mojolicious renders the produced static file.

SEE ALSO

Ado::Control::Doc, Ado::Plugin::MarkdownRenderer, Text::MultiMarkdown, http://fletcherpenney.net/multimarkdown/, MultiMarkdown Guide Ado::Plugin, Ado::Manual.

AUTHOR

Красимир Беров (Krasimir Berov)