%def name="render_form_filter_dropdown(map)"> % for child in map["children"]: % if child in map["entries"]: ${render_entry(map["entries"], child)} %else: ${render_category(map["subcategories"], child)} %endif %endfor %def> <%def name="render_entry(entries, entry)">