Skip to content
/ dirdown Public

Minimal file-system based CMS

License

Notifications You must be signed in to change notification settings

memowe/dirdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dirdown

Minimal file-system based CMS

Travis CI tests

Generate a new dirdown web application

  1. Invoke the generator
    $ mojo generate dirdown_app
  2. Edit the markdown content in dirdown_content.
  3. Start the server via
    $ morbo dirdown
    Server available at http://127.0.0.1:3000
  4. Dump the content as static files via
    $ ./dirdown dump

Use it as a plugin for your own Mojolicious web apps:

#!/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;

Prerequisites

Module Version
Mojolicious 8.12
Text::Markdown 1.000031
YAML::XS 0.76
Test::Exception (Tests only) 0.43

License and copyright

Copyright (c) 2019 Mirko Westermeier (@memowe, mirko@westermeier.de)

Released under the MIT (X11) license. See LICENSE.txt for details.