shared

package
v0.0.0-...-08383f9 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.2.778

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout

type Layout struct {
	// contains filtered or unexported fields
}

func NewLayout

func NewLayout(viewer Viewer, err string) *Layout

func (*Layout) Props

func (l *Layout) Props() PageProps

func (*Layout) SetDescription

func (l *Layout) SetDescription(description string) *Layout

func (*Layout) SetImg

func (l *Layout) SetImg(img string) *Layout

func (*Layout) SetTitle

func (l *Layout) SetTitle(title string) *Layout

func (*Layout) SetURL

func (l *Layout) SetURL(url string) *Layout

func (Layout) View

func (l Layout) View() templ.Component

type PageProps

type PageProps struct {
	Title       string
	Description string
}

type Viewer

type Viewer interface {
	Props() PageProps
	View() templ.Component
}

Jump to

Keyboard shortcuts

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