unbelievable - Yet another site generator (can you believe it?)
unbelievable new <sitename> cd <sitename> unbelievable build
Say unbelievable --man for full documentation. Available subcommands are new, build, and help.
unbelievable --man
new
build
help
unbelievable makes static sites using Dancer2 and wallflower. The inputs are UTF-8 encoded Markdown files, or HTML files or other assets. Your site is a full Dancer2 application, so can do anything you want! Databases, fancy templating --- the sky's the limit.
unbelievable
To build your static site, unbelievable requests every file in the public/ and content/ directories of your application. public/ usually holds your static files (e.g., images and CSS), just like in a regular Dancer2 application. content/ generally holds your Markdown files. For example, content/foo.md will be accessible (unless you say otherwise in your Dancer2 code) as /foo and /foo/.
public/
content/
content/foo.md
/foo
/foo/
For now, don't use request.uri_base in your templates. The generated templates assume they are mounted in /. Please open an issue if that turns out to be a problem.
request.uri_base
/
TODO!
-s
--route-style
Request routes in style. Valid values are:
htmlfile
Request each route as a file ending in html (e.g., /foo.html.
/foo.html
dir
Request each route as a directory (e.g., /foo/).
Copyright (C) 2020 Chris White.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Chris White <cxwembedded@gmail.com>
To install App::unbelievable, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::unbelievable
CPAN shell
perl -MCPAN -e shell install App::unbelievable
For more information on module installation, please visit the detailed CPAN module installation guide.