components

package
v0.1.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combined

func Combined(result *index.Result) g.Node

func CombinedData

func CombinedData(data nix.Importable) g.Node

func Detail

func Detail(thing nix.Importable) g.Node

func DetailPage

func DetailPage(tdata TemplateData, thing nix.Importable) g.Node

func Error

func Error(tdata TemplateData) g.Node

func ErrorPage

func ErrorPage(tdata TemplateData) g.Node

func ErrorTemplate

func ErrorTemplate(tdata TemplateData) g.Node

func MapCommaList

func MapCommaList[T any](items []T, fn func(T) g.Node) g.Node

func OptionDetail

func OptionDetail(option nix.Option) g.Node

func OptionDetailPage

func OptionDetailPage(tdata TemplateData, option nix.Option) g.Node

func Options

func Options(result *index.Result) g.Node

func PackageDetail

func PackageDetail(pkg nix.Package) g.Node

func PackageDetailPage

func PackageDetailPage(tdata TemplateData, pkg nix.Package) g.Node

func Packages

func Packages(result *index.Result) g.Node

func Page

func Page(tdata TemplateData, children ...g.Node) g.Node

func Results

func Results(r ResultData) g.Node

func ResultsPage

func ResultsPage(r ResultData) g.Node

func Score

func Score(h index.DocumentMatch) g.Node

func SearchForm

func SearchForm(tdata TemplateData, r ResultData) g.Node

func SearchPage

func SearchPage(tdata TemplateData, r ResultData, children ...g.Node) g.Node

Types

type ResultData

type ResultData struct {
	TemplateData
	Query   string
	Results *search.Result
	Prev    string
	Next    string
	All     string
}

type TemplateData

type TemplateData struct {
	Sources       []*config.Source
	Source        *config.Source
	Query         string
	ExtraHeadHTML string
	Code          int
	Message       string
	Assets        *frontend.AssetCollection
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL