render

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

templ: version: v0.3.865

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapHydrationScript

func BootstrapHydrationScript(assetMode string, sharedDataBase string, pageDataBase string) templ.Component
func Breadcrumb(items []BreadcrumbItem) templ.Component

func BuildTagParentMap

func BuildTagParentMap(tags []*ppmodel.NavTag) map[string]*ppmodel.NavTag

BuildTagParentMap walks the NavTag tree once and returns a map from tag name to parent NavTag.

func CommonHeadersSection

func CommonHeadersSection(headers []*ppmodel.HeaderInfo, headersJSON string) templ.Component

func GraphJSONScript

func GraphJSONScript(graphJSON string) templ.Component
func Head(title string, baseURL string, extraCSS []string, lite bool) templ.Component

func InlineExamples

func InlineExamples(mt *ppmodel.MediaTypeInfo) templ.Component

func Layout

func Layout(pageTitle string, siteTitle string, baseURL string, activeSlug string, specFormat string, assetMode string, sharedDataBase string, pageDataBase string, vizGraphDataBase string, vizDiagramDataBase string, extraCSS []string, lite bool, content templ.Component) templ.Component

func MermaidDiagramScript

func MermaidDiagramScript(diagram string) templ.Component

func ModelPageTempl

func ModelPageTempl(page *ppmodel.ModelPage) templ.Component

func ModelTypeIndexTempl

func ModelTypeIndexTempl(group *ppmodel.NavModelGroup, breadcrumb []BreadcrumbItem) templ.Component

func ModelsIndexTempl

func ModelsIndexTempl(groups []*ppmodel.NavModelGroup, breadcrumb []BreadcrumbItem) templ.Component

func MustJSON

func MustJSON(v any) string
func NavTagItem(tag *ppmodel.NavTag) templ.Component
func NavTempl(tags []*ppmodel.NavTag, models map[string][]*ppmodel.ModelPage) templ.Component

func OperationPageTempl

func OperationPageTempl(page *ppmodel.OperationPage) templ.Component

func RequestBodySection

func RequestBodySection(rb *ppmodel.RequestBodyInfo) templ.Component

func RootOperationItem

func RootOperationItem(op *ppmodel.NavOperation) templ.Component

func RootPageTempl

func RootPageTempl(page *ppmodel.RootPage) templ.Component

func RootTagSection

func RootTagSection(tag *ppmodel.NavTag, depth int) templ.Component

func SecuritySchemeTypeBadge

func SecuritySchemeTypeBadge(sec *ppmodel.SecurityRequirement) templ.Component

func TagIndexTempl

func TagIndexTempl(tag *ppmodel.NavTag, breadcrumb []BreadcrumbItem) templ.Component

Types

type BreadcrumbItem struct {
	Label string
	Href  string
}

BreadcrumbItem represents a single breadcrumb navigation entry.

func ModelTypeIndexBreadcrumb

func ModelTypeIndexBreadcrumb(typeName string) []BreadcrumbItem

ModelTypeIndexBreadcrumb builds the breadcrumb for a model type index page.

func ModelsIndexBreadcrumb

func ModelsIndexBreadcrumb() []BreadcrumbItem

ModelsIndexBreadcrumb builds the breadcrumb for the models index page.

func TagIndexBreadcrumb

func TagIndexBreadcrumb(tag *ppmodel.NavTag, tagParentMap map[string]*ppmodel.NavTag) []BreadcrumbItem

TagIndexBreadcrumb builds the breadcrumb for a tag index page using a pre-computed parent map.

Jump to

Keyboard shortcuts

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