www-staticblog - Generate a static site using WWW::StaticBlog
0.02
www-staticblog --title <title> [options...] www-staticblog --configfile <file> www-staticblog ( -? | --usage | --help )
You can use this program to generate a static site (most likely a blog) from a set of templates, and posts.
The site's title. Populated in site_title for the templates.
site_title
The site's tagline. Populated in site_tagline for the templates.
site_tagline
Directory contining the post entry files to parse.
Directory containing the author files to parse.
Directory containing static/pre-generated files to be copied into --output_dir.
--output_dir
Directory to ouput the generated site.
Module to use for templating. Will look under WWW::StaticBlog::, if it starts with ::.
WWW::StaticBlog::
::
Options to pass to the template class constructor.
Template to use when rendering the site's index page.
The number of posts to show on the index page (by populating this many in posts for the template).
posts
Template to use when rendering posts.
Template to use when rendering author pages.
Template to use when rendering tag pages.
Render site in debugging mode, by setting debug for the templates.
debug
The location of where to generate an Atom feed of posts.
--post_feed feed/atom.xml
The number of posts to show in the Atom feed.
Used to determine how many (at most) posts to populate in recent_posts for the templates.
recent_posts
Base URL of the site being generated. (Must be provided when --post_feed is given.)
--post_feed
Configuration file to read options from.
For example http://technosorcery.net uses the following www-staticblog.yaml config file:
--- title: Technosorcery Networks tagline: Ramblings of Jacob Helwig authors_dir: authors posts_dir: articles static_dir: static output_dir: build template_class: '::Template::Toolkit' template_options: INCLUDE_PATH: - template/src - template/lib WRAPPER: site index_template: index.tt2 post_template: post.tt2 author_template: author.tt2 tag_template: tag.tt2 post_feed: feed/atom.xml url: http://technosorcery.net/
Output a list of all of the options.
No bugs have been reported.
Please report any bugs or feature requests to bug-www-staticblog@rt.cpan.org, or through the web interface at http://rt.cpan.org.
bug-www-staticblog@rt.cpan.org
See perlmodinstall for information and options on installing Perl modules.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/J/JH/JHELWIG/>.
Jacob Helwig <jhelwig at cpan.org>
<jhelwig at cpan.org>
Copyright 2010 by Jacob Helwig
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install WWW::StaticBlog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::StaticBlog
CPAN shell
perl -MCPAN -e shell install WWW::StaticBlog
For more information on module installation, please visit the detailed CPAN module installation guide.