templates

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

templ: version: 0.2.476

templ: version: 0.2.476

templ: version: 0.2.476

templ: version: 0.2.476

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Document

func Document(vars DocumentVars) templ.Component

func Error

func Error(vars ErrorVars) templ.Component

func WriteUnsafe

func WriteUnsafe(str string) templ.Component

Types

type DocumentVars

type DocumentVars struct {
	ID        string
	Version   int64
	Content   string
	Formatted string
	CSS       string
	ThemeCSS  string
	Language  string

	Versions []DocumentVersion
	Lexers   []string
	Styles   []Style
	Style    string
	Theme    string

	Max        int
	Host       string
	Preview    bool
	PreviewAlt string
}

func (DocumentVars) GetCSS

func (v DocumentVars) GetCSS() string

func (DocumentVars) GetThemeCSS

func (v DocumentVars) GetThemeCSS() string

func (DocumentVars) PreviewURL

func (v DocumentVars) PreviewURL() string

func (DocumentVars) URL

func (v DocumentVars) URL() string

type DocumentVersion

type DocumentVersion struct {
	Version int64
	Label   string
	Time    string
}

type ErrorVars

type ErrorVars struct {
	Error     string
	Status    int
	Path      string
	RequestID string
}

type Style

type Style struct {
	Name  string
	Theme string
}

Jump to

Keyboard shortcuts

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