Remove silly DOCTYPE
[scpubgit/App-SCS.git] / lib / App / SCS / Role / PageChildren.pm
CommitLineData
632f0e07 1package App::SCS::Role::PageChildren;
2
3use Moo::Role;
4
f50b4a35 5requires '_page_set';
632f0e07 6requires '_page_set_class';
7requires '_top_dir';
8requires '_my_path';
9
10sub children {
11 my ($self, %args) = @_;
12 if (my $at = delete $args{at_depth}) {
13 @args{qw(min_depth max_depth)} = ($at, $at);
14 }
15 $self->_page_set_class->new(
16 top_dir => $self->_top_dir,
17 base_dir => $self->_my_path,
18 max_depth => 1,
f50b4a35 19 plugin_config => $self->_page_set->plugin_config,
632f0e07 20 %args,
21 );
22}
23
241;