start of SubList filter code
[scpubgit/SCS.git] / lib / SCSite / Page.pm
CommitLineData
ebd4c292 1package SCSite::Page;
2
3use IO::All;
4use Moo;
5
6has $_ => (is => 'ro') for qw(title description keywords body created);
7
8has "_$_" => (is => 'ro', init_arg => $_) for qw(page_set path);
9
10sub children {
11 my ($self) = @_;
12 my $ps = $self->_page_set;
13 (ref $ps)->new(
14 base_dir => io->dir($ps->base_dir)->catdir($self->_path),
15 max_depth => 1
16 );
17}
18
191;