h_vs_templ

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

templ: version: v0.3.977

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConditionalsTempl

func ConditionalsTempl(first, second, third bool) templ.Component

Benchmark 7: Complex Conditionals

func DeepNestingTempl

func DeepNestingTempl() templ.Component

Benchmark 2: Deep Nesting

func EmptyPageTempl

func EmptyPageTempl() templ.Component

Benchmark 14: Empty Page

func FormTempl

func FormTempl() templ.Component

Benchmark 12: Form Elements

func HTMLEscapingTempl

func HTMLEscapingTempl(content string) templ.Component

Benchmark 10: HTML Escaping

func LargeTextTempl

func LargeTextTempl(text string) templ.Component

Benchmark 4: Large Text

func ListTempl

func ListTempl(items []string) templ.Component

Benchmark 5 & 6: List Iteration

func ManyAttributesTempl

func ManyAttributesTempl() templ.Component

Benchmark 3: Many Attributes

func MixedContentTempl

func MixedContentTempl() templ.Component

Benchmark 8: Mixed Content

func RawTextTempl

func RawTextTempl(html string) templ.Component

Benchmark 15: RawText

func RealWorldTempl

func RealWorldTempl(users []User) templ.Component

Benchmark 17: Real World Page (Concurrent) Full realistic page with all features for concurrent benchmarking

func SVGTempl

func SVGTempl() templ.Component

Benchmark 16: SVG

func SimpleElementTempl

func SimpleElementTempl() templ.Component

Benchmark 1: Simple Element

func TableTempl

func TableTempl(rows int) templ.Component

Benchmark 11: Table

func VoidElementsTempl

func VoidElementsTempl() templ.Component

Benchmark 9: Void Elements

Types

type ConditionalsData

type ConditionalsData struct {
	First  bool
	Second bool
	Third  bool
	True   bool
}

type RealWorldData

type RealWorldData struct {
	Users []User
}

type User

type User struct {
	Name  string
	Admin bool
}

User represents a user in the system

Jump to

Keyboard shortcuts

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