package components import ( "go.alanpearce.eu/searchix/internal/config" "go.alanpearce.eu/searchix/internal/index" "go.alanpearce.eu/searchix/internal/nix" ) templ Packages(result *index.Result) { if config.DevMode { } for _, hit := range result.Hits { if m := convertMatch[nix.Package](hit.Data); m != nil { @packageRow(hit, *m) } }
Attribute Name DescriptionScore
} templ packageRow(hit index.DocumentMatch, p nix.Package) { @openDialogLink(p.Attribute) { p.Name } { p.Description } if config.DevMode { @score(hit) } }