Here's what I have so far.  The problem is that it doesn't work.  How do
I get from the $hub to the pages?

use Kwiki;

sub our_hub {
    my $path = shift;
    chdir $path;
    my $hub = Kwiki->new->debug->load_hub(
        "config.yaml", -plugins => "plugins");
    $hub->load_class('config')->script_name('');
    return $hub;
}

my $hub = our_hub('/home/kwiki/htdocs');
for my $p ($hub->pages) {
    warn $p->title;
}

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to