$def with (page) $ subject_list = [('subjects', _('Subjects'), 20), ('places', _('Places'), 20), ('people', _('People'), 10), ('times', _('Times'), 10)]

## $_("Related...")

$def renderSubjects(subjects): $if len(subjects) > 0: $for s in subjects: $s.name$cond(loop.last, '', ',') $else: $_("None found.") $for category, label, limit in subject_list:

### $label

$:renderSubjects(page[category][:limit])