Minimal file-system based CMS
- Invoke the generator
$ mojo generate dirdown_app
- Edit the markdown content in
dirdown_content
. - Start the server via
$ morbo dirdown Server available at http://127.0.0.1:3000
- Dump the content as static files via
$ ./dirdown dump
#!/usr/bin/env perl
use Mojolicious::Lite;
# Load the dirdown CMS under /content
plugin Dirdown => {
prefix => '/content',
dir => app->home->rel_file('dirdown_content'),
};
get '/' => {text => 'Hello world!'};
app->start;
Module | Version |
---|---|
Mojolicious | 8.12 |
Text::Markdown | 1.000031 |
YAML::XS | 0.76 |
Test::Exception (Tests only) | 0.43 |
Copyright (c) 2019 Mirko Westermeier (@memowe, mirko@westermeier.de)
Released under the MIT (X11) license. See LICENSE.txt for details.