Simon Cozens > Bryar-2.1 > Bryar::Config

Download:
Bryar-2.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  3
View/Report Bugs
Module Version: 1.0   Source   Latest Release: Bryar-4.0

NAME ^

Bryar::Config - A set of configuration settings for Bryar

SYNOPSIS ^

        Bryar::Config->new(...);
        Bryar::Config->load(...);

DESCRIPTION ^

This encapsulates a Bryar configuration. It can be used to load a new configuration from a file, or provide a reasonable set of defaults.

METHODS ^

new

    Bryar::Config->new(...)

Creates a new Bryar configuration instance.

load

    $self->load($file)

Load the configuration file from somewhere and return the arguments as a hash.

renderer

        $self->renderer();    # Get renderer
        $self->renderer(...); # Set renderer

The class used to render this blog; defaults to "Bryar::Renderer::TT", the Template Toolkit renderer.

frontend

        $self->frontend();    # Get frontend
        $self->frontend(...); # Set frontend

The class used to handle input and output from the blog; defaults to Bryar::Frontend::CGI if run via the CGI, Bryar::Frontend::mod_perl from inside Apache.

collector

        $self->collector();    # Get collector
        $self->collector(...); # Set collector

The class used to select which documents to output. You probably don't want to mess with this.

source

        $self->source();    # Get source
        $self->source(...); # Set source

The class which finds the blog posts. Defaults to Bryar::DataSource::FlatFile, the blosxom-compatible data source.

datadir

        $self->datadir();    # Get datadir
        $self->datadir(...); # Set datadir

Where the templates (and in the case of the flat-file data source, the blog posts) live.

name

        $self->name();    # Get name

The name of this blog.

description

        $self->description();    # Get description

A description for the blog.

depth

        $self->depth();    # Get depth
        $self->depth(...); # Set depth

How far to recurse into sub-blogs. Default is 1, stay in the current directory.

depth

        $self->depth();    # Get depth
        $self->depth(...); # Set depth

Gets (and optionally sets) the value of the blog's depth

recent

    $self->recent();    # Get recent
    $self->recent(...); # Set recent

The number of entries to display if there are no other parameters given. Defaults to 20 entries.

baseurl

        $self->baseurl();    # Get baseurl

The base URL of this blog. (Needed for setting up links to archived posts, etc.)

LICENSE ^

This module is free software, and may be distributed under the same terms as Perl itself.

AUTHOR ^

Copyright (C) 2003, Simon Cozens simon@kasei.com

syntax highlighting: