web

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

templ: version: v0.3.1001

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlpineInit

func AlpineInit() templ.Component

func Badge

func Badge(text string, variant string) templ.Component

Badge renders a daisyUI badge with the given variant. Supported variants: primary, secondary, accent, ghost, info, success, warning, error.

func EmptyState

func EmptyState(message string) templ.Component

EmptyState renders a centered placeholder message.

func FormField

func FormField(label string) templ.Component

FormField renders a labeled form field wrapper. The input content is provided as children.

func Layout

func Layout(activePage string, pageScript string, username string, isAdmin bool, content templ.Component) templ.Component

func LoginLayout

func LoginLayout(pageScript string, content templ.Component) templ.Component
func Navbar(activePage string, username string, isAdmin bool) templ.Component
func PageHeader(title string, subtitle string) templ.Component

PageHeader renders a consistent page title block.

func SkillsDrawer

func SkillsDrawer() templ.Component

SkillsDrawer renders a slide-over skills management panel. It reads state from the surrounding Alpine scope (skillsDrawer.*) and calls methods provided by skillsDrawerMixin in /static/js/components/skills_drawer.js.

Include once inside a page's root x-data element; open via `openSkillsDrawer({...})`.

func StaticHandler

func StaticHandler() http.Handler

StaticHandler returns an http.Handler that serves files from the embedded static directory, stripping the "/static/" prefix so that a request for GET /static/js/api.js resolves to static/js/api.js.

Types

This section is empty.

Directories

Path Synopsis
templ: version: v0.3.1001
templ: version: v0.3.1001

Jump to

Keyboard shortcuts

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