views

package
v0.0.0-...-878bea8 Latest Latest
Warning

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

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

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServePage

func ServePage(data ServeData) templ.Component

ServePage renders the full HTML page for the live preview.

Types

type FileEntry

type FileEntry struct {
	Name     string
	Path     string // relative URL path
	IsDir    bool
	Children []FileEntry
}

FileEntry represents a file or directory in the file tree.

type ServeData

type ServeData struct {
	Title           string
	Content         string
	ThemeName       string
	AutoReload      bool
	IsDirectoryMode bool
	CurrentPath     string
	Files           []FileEntry
}

ServeData holds typed data for the serve preview page.

Jump to

Keyboard shortcuts

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