%page args="environ, title, slug=None, add_css=(), add_js=()"/>\ <%namespace name="index" file="/index.mako" import="get_tools"/>\ <%! from itertools import count from os import path %>\ <% tools = get_tools() root = path.dirname(environ["SCRIPT_NAME"]) this = environ["PATH_INFO"] pretty = path.split(root)[0] if not slug: slug = path.split(this)[1] if slug.endswith(".fcgi"): slug = slug[:-5] %>\
> % for (name, tool, link, complete, desc), num in zip(tools, count(1)): ${tool} % if num < len(tools): | % endif % endfor