1 package SCSite::SubListFilter;
8 my ($self, $stream, $config, $page) = @_;
9 my $max = $config->{max_entries}||undef; # explicit undef (not 0)
10 $stream->select('.SubList')
11 ->repeat_content($page->children->latest($max)->map(sub {
14 $_->select('.entry.title')->replace_content($o->title)
15 ->select('.entry.description')->replace_content($o->description)
16 ->select('.entry.created')->replace_content($o->created)
17 ->select('.entry.link')->set_attribute(href => $o->path);