templates

package
v0.0.0-...-3c357ad Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get() embed.FS

Get returns a file system containing all templates via embed.FS

func GetOS

func GetOS() fs.FS

GetOS returns a file system containing all templates which will load the files directly from the operating system. This should only be used for local development in order to facilitate live reloading.

Types

type Layout

type Layout string
const (
	LayoutMain Layout = "main"
	LayoutAuth Layout = "auth"
	LayoutHTMX Layout = "htmx"
)

type Page

type Page string
const (
	PageAbout          Page = "about"
	PageCache          Page = "cache"
	PageContact        Page = "contact"
	PageError          Page = "error"
	PageForgotPassword Page = "forgot-password"
	PageHome           Page = "home"
	PageLogin          Page = "login"
	PageRegister       Page = "register"
	PageResetPassword  Page = "reset-password"
	PageSearch         Page = "search"
	PageTask           Page = "task"
	PageClickToEdit    Page = "click-to-edit"
)

Jump to

Keyboard shortcuts

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