templates

package
v0.0.0-...-64ba4e8 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 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"
	PageDashboard      Page = "dashboard"
	PageStripe         Page = "stripe"
	PageStripeSuccess  Page = "stripe-success"
	PageStripeCancel   Page = "stripe-cancel"
	// -------- Model Pages --------
	PageModelPrice         Page = "model-price"
	PageModelPriceList     Page = "model-price-list"
	PageModelPriceForm     Page = "model-price-form"
	PageModelProduct       Page = "model-product"
	PageModelProductList   Page = "model-product-list"
	PageModelProductForm   Page = "model-product-form"
	PageModelModelName     Page = "model-modelname"
	PageModelModelNameList Page = "model-modelname-list"
	PageModelModelNameForm Page = "model-modelname-form"
	PageAITask             Page = "ai-task"
)

Jump to

Keyboard shortcuts

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