{# the pieces every module is built from; a page composes, it does not restate #} {# the mark for an operating system, as the node names it #} {% set os_icons = {"Linux": "si-linux", "Darwin": "si-apple", "Windows": "grid-2x2"} %} {# a Lucide icon by name, inlined so it takes the text colour; the set lives in icons/ #} {% macro icon(name) -%} {% include "icons/" ~ name ~ ".svg" %} {%- endmacro %} {# a button that copies the text of what stands right before it, and ticks for a moment #} {% macro copy() -%} {%- endmacro %} {# a select that looks like the rest of the page: the native control, drawn over #} {% macro select(id, name, options, selected, attrs="") -%} {{ icon("chevron-down") }} {%- endmacro %} {# an avatar; one that `opens` a card keeps the card by the pointer while the pointer is on it, within the window #} {% macro avatar(identity, small=false, opens=none) -%}