package components
import (
"searchix/internal/index"
"searchix/internal/nix"
)
templ Packages(result *index.Result) {
Attribute |
Name |
Description |
for _, hit := range result.Hits {
@packageRow(hit.Data.(nix.Package))
}
}
templ packageRow(p nix.Package) {
@openDialogLink(p.Attribute)
|
{ p.Name }
|
{ p.Description }
|
}