package Bryar; use Bryar::Config; use Bryar::Comment; use 5.006; use strict; use warnings; use Carp; our $VERSION = '2.1'; =head1 NAME Bryar - A modular, extensible weblog tool =head1 SYNOPSIS Bryar->go(); =head1 DESCRIPTION Bryar is a piece of blog production software, similar in style to (but considerably more complex than) Rael Dornfest's "blosxom". The main difference is extensibility, in terms of data collection and output formatting. For instance, data can be acquired via DBD from a database, or from the filesystem, or from any other source you can think of; documents can be specified in HTML, or some other format which gets turned into HTML; pages can be rendered with Template Toolkit, HTML::Template, or any other template engine of your choice. =head1 INSTALLING BRYAR The short answer: run F in a directory served by your web server. Then do what it tells you. The long answer: The only front-end working in this release is the CGI one; please don't try this in mod_perl yet. C is experimental, and while I'm running it on my live server, it doesn't actually offer any advantages yet. You'll need to write a little driver script which sets some parameters. For instance, my F looks like this: #!/usr/bin/perl use Bryar; Bryar->go( name => "Themes, Dreams and Crazy Schemes", description => "Simon Cozens' weblog", baseurl => "http://blog.simon-cozens.org/bryar.cgi" ); You can get away without any configuration options, but it's probably wise to set something like the above up. Bryar will look in its current directory for data files and templates, so if you're keeping your data somewhere else, you'll want to set the F option too: use Bryar; Bryar->go( datadir => "/home/simon/blog" ); If Bryar finds a file called F in the data directory, (which as noted above, defaults to the current directory if not specified explicitly) then it'll parse that as a colon-separated file full of other options. I could, for instance, get away with name: Themes, Dreams and Crazy Schemes description: Simon Cozens' weblog baseurl: http://blog.simon-cozens.org/bryar.cgi in a F, and then would be able to use C<< Bryar->go() >> with no further parameters. For details of interesting parameters, look in L. See also L for how to database-back the blog. Now you will need some templates to make your new blog look nice and shiny. You can copy in the F and F which come with Bryar, and edit those. The F program which comes with Bryar will set all this up for you. Look at L for hints as to how to customize the look-and-feel of the blog. Once you're all up and running, (and your web server knows about F) then you can start blogging! Just dump F<.txt> files into your data directory. If you used F, you should even have a sample blog entry there for you. =head1 USING BRYAR This section describes Bryar from the end-users point of view - that is, what do all those URLs do? If you're familiar with blosxom, this section should be a breeze. http://your.blog.com/ will return the most recent 20 posts. The default of 20 can be changed by setting the C configuration option. http://your.blog.com/something will try to find a sub-blog - in blosxom terms, this is a subdirectory underneath the main data directory. Sub-blogs can have their own templates, but by default inherit the templates from the main blog. (Oh, and another thing - you can stick templates either in the F