-
-
25 Oct 2009 16:51:03 UTC
- Distribution: Bryar
- Module version: 1.2
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (9)
- Testers (232 / 296 / 2)
- Kwalitee
Bus factor: 0- 54.78% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (31.26KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Bryar::DataSource::FlatFile - Blog entries from flat files, a la blosxom
SYNOPSIS
$self->all_documents(...); $self->search(...); $self->add_comment(...);
DESCRIPTION
Just like
blosxom
, this data source pulls blog entries out of flat files in the file system.METHODS
all_documents
$self->all_documents
Returns all documents making up the blog.
all_but_recent
$self->all_but_recent
Return all documented except recent() ones.
entry_glob
Returns a glob pattern which matches blog posts. This defaults to
*.txt
.id_to_file
Takes a Bryar ID, converts it to a file name.
file_to_id
Vice versa.
search
$self->search($bryar, $config, %params)
A more advanced search for specific documents
make_document
Turns a filename into a
Bryar::Document
, by parsing the file blosxom-style.add_comment
Class->add_comment($bryar, document => $doc, author => $author, url => $url, content => $content );
Records the given comment details.
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
some parts Copyright 2007 David Cantrell
david@cantrell.org.uk
Module Install Instructions
To install Bryar, copy and paste the appropriate command in to your terminal.
cpanm Bryar
perl -MCPAN -e shell install Bryar
For more information on module installation, please visit the detailed CPAN module installation guide.