1 package SCSite::SubListFilter;
8 my ($self, $stream, $config, $page) = @_;
9 my $max = $config->{max_entries}||undef; # explicit undef (not 0)
11 map +(exists $config->{$_} ? ($_ => $config->{$_}) : ()),
12 qw(min_depth max_depth at_depth);
13 $stream->select('.SubList')
14 ->repeat_content($page->children(%child)->latest($max)->map(sub {
17 $_->select('.entry.title')->replace_content($o->title)
18 ->select('.entry.subtitle')->replace_content($o->subtitle)
19 ->select('.entry.description')->replace_content($o->description)
20 ->select('.entry.published_at')->replace_content($o->published_at)
21 ->select('.entry.link')->set_attribute(href => $o->path);