NAME
OurNet::BBSApp - BBS Application Interface
SYNOPSIS
use OurNet::BBSApp;
OurNet::BBSApp->new('autrijus.xml')->run();
The file "autrijus.xml" would look like:
<bbsapp>
<handler>Templator</handler>
<monitor source="archives" name="autrijus">
<template list="group.w" file="article.w" />
<output path="/srv/www/autrijus" list="index-[% dir %]-[% recno %].html"
file="archive[% dir %]-[% recno %].html" />
</monitor>
<monitor source="articles" name="autrijus">
<template list="group.w">
<file>article.w</file>
<file>reply.w</file>
</template>
<output path="/srv/www/autrijus" reversed="1" preview="5" pagemax="20"
list="index-[% page %].html">
<file>article[% recno %].html</file>
<file>reply[% recno %].html</file>
</output>
</monitor>
<interval>10</interval>
<bbsarg>CVIC</bbsarg>
<bbsarg>/srv/bbs/cvic</bbsarg>
<bbsarg>1003</bbsarg>
<bbsarg>2500</bbsarg>
</bbsapp>
The XML tree could also be passed as a hash reference instead. Consult XML::Simple for how the attributes will look like.
Note that keyattr
attribute is set to {}
(null), so there are no "default" attribute keys in incoming XML structure.
DESCRIPTION
OurNet::BBSApp provides a XML-based, unified access interface to applications operating on OurNet::BBS. The factory class for these services are usually OurNet::BBSApp::Board, which supports various tweakings on ArticleGroup classes.
The specific API remains to be documented.
BUGS
Too numerous to describe.
SEE ALSO
AUTHORS
Chia-Liang Kao <clkao@clkao.org> Autrijus Tang <autrijus@autrijus.org>
COPYRIGHT
Copyright 2001 by Autrijus Tang <autrijus@autrijus.org>, Chia-Liang Kao <clkao@clkao.org>.
All rights reserved. You can redistribute and/or modify this module under the same terms as Perl itself.