$def with (query, files) $var breadcrumbs = ("search", "Search") $var title: Results for

Projects

$ previous_project = "" $ previous_project = "" $for (project, file), blocks in sorted(files.items()): $if project != previous_project:

$project

$ previous_project = project

$file

$for starting_line, block in sorted(blocks.items()):
$:highlight(block, file, starting_line=starting_line, search=query)