Rapi::Blog - Plack-compatible, RapidApp-based blog engine
use Rapi::Blog;
my $app = Rapi::Blog->new({
site_path => '/path/to/some-site',
scaffold_path => '/path/to/some-site/scaffold', # default
});
# Plack/PSGI app:
$app->to_app
Create a new site from scratch using the rabl.pl utility script:
rabl.pl create /path/to/some-site
cd /path/to/some-site && plackup
This is a Plack-compatible blogging platform written using RapidApp. This module was first released during The Perl Conference 2017 in Washington D.C. where a talk/demo was given on the platform:
See Rapi::Blog::Manual for more information and usage.
Rapi::Blog
extends RapidApp::Builder and supports all of its options, as well as the following params specific to this module:
Only required param - path to the directory containing the site.
Path to the directory containing the "scaffold" of the site. This is like a document root with some extra functionality.
If not supplied, defaults to 'scaffold/'
within the site_path
directory.
Alternative to scaffold_path
, the name of one of the builtin skeleton scaffolds to use as the live scaffold. This is mainly useful for dev and content-only testing. As of version 1.0000
) there are two built-in scaffolds:
This is the default out-of-the-box scaffold which is based on the "Blog" example from the Twitter Bootstrap HTML/CSS framework (v3.3.7): http://getbootstrap.com/examples/blog/. This mainly exists to serve as a useful reference implementation of the basic features/directives provided by the Template API.
Based on the "Keep It Simple" website template by http://www.Styleshout.com
If set to true and the local scaffold directory doesn't exist, the default builtin skeleton scaffold 'bootstrap-blog' will be used instead. Useful for testing and content-only scenarios.
Defaults to false.
PSGI $app
CodeRef. Derives from Plack::Component
Henry Van Styn <[email protected]>
This software is copyright (c) 2017 by IntelliTree Solutions llc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.