Hi… I am well aware that this diff view is very suboptimal. It will be fixed when the refactored server comes along!
template_funcs: base_name should use path, not filepath
package main import (
"path/filepath"
"path"
	"strings"
)
func first_line(s string) string {
	before, _, _ := strings.Cut(s, "\n")
	return before
}
func base_name (s string) string {
return filepath.Base(s)
return path.Base(s)
}