{% import "macros.html" as ui %} {# One code entity in the results. #} {% macro code_row(item) %}
  • {{ ui.icon(item.role, item.symbol) }} {{ item.before }}{{ item.match }}{{ item.after }} {{ item.path }} {% if item.snippet %} {{ item.snippet.before }}{{ item.snippet.match }}{{ item.snippet.after }} {% endif %} {{ item.role }} {% if show_score %}{{ "%.3f" | format(item.score) }}{% endif %}
  • {% endmacro %} {% if query.strip() %} {% if pagination %} {# Page buttons: each one runs the same search again, for another page. #} {% macro page_button(number, label, current=false, aria="") -%} {%- endmacro %} {% endif %} {% endif %}