serve

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

templ: version: v0.3.906

templ: version: v0.3.906

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Details

func Details(summary entry.Summary) templ.Component

func Include

func Include() templ.Component

TODO: Transfer away from a cdn and deliver ourself

func Loader

func Loader() templ.Component

func MainPage

func MainPage(summary entry.Summary) templ.Component

func QuickAddForm

func QuickAddForm() templ.Component

func QuickAddScript

func QuickAddScript() templ.Component

func Serve

func Serve(ctx context.Context, logger *slog.Logger, handler EntryHandler, port string) error

func Style

func Style() templ.Component

Types

type EntryHandler

type EntryHandler interface {
	CreateEntry(entry.Entry) error
	GetAllEntries(...entry.Option) ([]entry.Entry, error)
}

Jump to

Keyboard shortcuts

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