summaryrefslogtreecommitdiffstats
path: root/lib/Narwhal/Component/Role/Wiki.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Narwhal/Component/Role/Wiki.pm')
-rw-r--r--lib/Narwhal/Component/Role/Wiki.pm31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/Narwhal/Component/Role/Wiki.pm b/lib/Narwhal/Component/Role/Wiki.pm
new file mode 100644
index 0000000..c57cf7e
--- /dev/null
+++ b/lib/Narwhal/Component/Role/Wiki.pm
@@ -0,0 +1,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;