package components
import (
"searchix/internal/index"
"searchix/internal/nix"
)
templ Options(result *index.Result) {
Title |
Description |
for _, hit := range result.Hits {
@optionRow(hit.Data.(nix.Option))
}
}
templ optionRow(o nix.Option) {
@openDialogLink(o.Name)
|
@markdown(firstSentence(o.Description))
|
}