{{/* File explorer fragments, served by GET /tree (internal/handlers/ui.go). Deliberately non-recursive: a directory is fetched one level at a time, so an open directory's children are always files or COLLAPSED directories. That matches the lazy-loading behavior (nothing below a closed folder is ever read) and keeps html/template out of recursive template definitions. */}} {{ define "tree_root" }}