template

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

templ: version: v0.2.590

templ: version: v0.2.590

templ: version: v0.2.590

templ: version: v0.2.590

templ: version: v0.2.590

templ: version: v0.2.590

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(data BaseData) templ.Component

func Image

func Image(data ImageData) templ.Component

func OverviewContent

func OverviewContent(data OverviewContentData) templ.Component

func OverviewSidebar

func OverviewSidebar(data OverviewSidebarData) templ.Component

func PageContent

func PageContent(data PageData) templ.Component

func PageImage

func PageImage(data PageImageData) templ.Component

func PageSidebar

func PageSidebar(data PageData) templ.Component

Types

type BaseData

type BaseData struct {
	HeadTitle    string
	Scripts      []string
	TopNavActive TopNavItem
	Messages     []string
	Sidebar      templ.Component
	Content      templ.Component
}

type ImageData

type ImageData struct {
	Src        string
	Width      int
	Height     int
	ClassNames []string
	Alt        string
}

type OverviewContentData

type OverviewContentData struct {
	DocFingerprint string
	Pages          []*dossier.Page
}

type OverviewSidebarData

type OverviewSidebarData struct {
	Path        string
	Size        string
	ModTime     string
	ModTimeFull string
}

type PageData

type PageData struct {
	DocFingerprint string
	Page           *dossier.Page
	SketchNodes    []SketchNodeData
}

type PageImageData

type PageImageData struct {
	DocFingerprint string

	Page       *dossier.Page
	Width      int
	ClassNames []string
	Alt        string
}

type SketchNodeData

type SketchNodeData struct {
	*sketch.Node

	ID string
}

type TopNavItem

type TopNavItem int
const (
	TopNavNone TopNavItem = iota
	TopNavOverview
)

Jump to

Keyboard shortcuts

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