temfest

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

templ: version: v0.3.960

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(
	title string,
	mainComp templ.Component,
	headerComps, bodyComps []templ.Component,
	config *BaseConfig,
) templ.Component

Base is the base for all. It is recommended

func ImportIcon

func ImportIcon(path, iconType string) templ.Component

func ImportScript

func ImportScript(path string, module, useDefer bool) templ.Component

func ImportStyle

func ImportStyle(path string) templ.Component

func Nest added in v0.8.0

func Nest(base, comp templ.Component) templ.Component

Nest nests comp inside base

Types

type BaseConfig added in v0.8.0

type BaseConfig struct {
	// Lang sets the language.
	Lang string

	// CharSet sets a meta tag with charset attribute. Default is UTF-8.
	CharSet string

	// NoViewport disables `<meta name="viewport" content="width=device-width, initial-scale=1.0"/>`
	NoViewport bool
}

BaseConfig is the configuration for temfest.Base

Jump to

Keyboard shortcuts

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