Ado::Control::Articles - display markdown documents.
#in your browser go to http://your-host/articles
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.
md_articles_root
etc/plugins/markdown_renderer.$mode.conf
Ado::Control::Articles inherits all the methods from Ado::Control and defines the following.
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.
$c->stash('html_file')
.md
$config->{md_reuse_produced_html}
$config->{md_articles_root}
Ado::Control::Doc, Ado::Plugin::MarkdownRenderer, Text::MultiMarkdown, http://fletcherpenney.net/multimarkdown/, MultiMarkdown Guide Ado::Plugin, Ado::Manual.
Красимир Беров (Krasimir Berov)
To install Ado, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ado
CPAN shell
perl -MCPAN -e shell install Ado
For more information on module installation, please visit the detailed CPAN module installation guide.