## search.html <%! from itertools import cycle colors = cycle( [ 'even', 'odd' ] ) %> <%inherit file="base.html"/> <%def name="title()"> Search

Search

Search terms
% if param.word: % if len(query)>0:

Showing the best ${len(query)} matches

% for color, row in zip(colors, query): ${makerow(color, row)} % endfor
Name Chromosome Start:End Type
% else:

No results found

% endif %endif
<%def name="makerow(color, row)"> ${row.name} ${row.chrom} ${row.start}:${row.end} ${row.label.name}