summaryrefslogtreecommitdiffstats
path: root/lib/Narwhal/Component/Role/Wiki.pm
blob: c57cf7e5d73c4de71e95c91e25f236e5cd437f55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package Narwhal::Component::Role::Wiki;
use Moose::Role;

has kioku => (
    isa      => 'KiokuX::Model',
    required => 1,
    handles  => 'KiokuDB::Role::API',
);

has tt => (
    isa      => 'Template',
    required => 1,
    handles  => ['process'],
);

has scope => (
    is      => 'ro',
    isa     => 'KiokuDB::LiveObjects::Scope',
    lazy    => 1,
    default => sub { shift->new_scope },
);

sub BUILD { }
after BUILD => sub {
    my $self = shift;
    $self->scope;
};

no Moose::Role;

1;