<% module_filename = False for item in data.values(): if item.name.startswith("Modules") and item.typestr == "module": module_filename = "%s.html" % item.filename_html break %> % if module_filename: If you are not redirected automatically, follow the link % endif