$def with (query, files)
$var breadcrumbs = ("search", "Search")
$var title: Results for
Projects
$ previous_project = ""
$for (project, file), blocks in sorted(files.items()):
$if project == previous_project:
$continue
$ previous_project = project
- $project
$ previous_project = ""
$for (project, file), blocks in sorted(files.items()):
$if project != previous_project:
$ previous_project = project
$for starting_line, block in sorted(blocks.items()):
$:highlight(block, file, starting_line=starting_line, search=query)