gomix

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(name string) *App

func (*App) Addons

func (app *App) Addons(addons ...func(app *App))

func (*App) EnableLogger

func (app *App) EnableLogger()

func (*App) Fragment

func (app *App) Fragment(path FragmentPath, component FragmentComponent) *Fragment

func (*App) Layout

func (app *App) Layout(component components.IsComponent)

func (*App) Page

func (app *App) Page(path LocationPath, setup PageSetup) *Page

func (*App) Scripts

func (app *App) Scripts(url ...string)

func (*App) ServeAtPort

func (app *App) ServeAtPort(port int)

type Fragment

type Fragment struct {
	// contains filtered or unexported fields
}

func NewFragment

func NewFragment(path FragmentPath, component FragmentComponent) *Fragment

func (*Fragment) Render

func (fragment *Fragment) Render()

func (*Fragment) Request

func (fragment *Fragment) Request() *http.Request

type FragmentComponent

type FragmentComponent func(fragment *Fragment) components.IsComponent

type FragmentPath

type FragmentPath string

type LocationPath

type LocationPath string

type Page

type Page struct {
	// contains filtered or unexported fields
}

func NewPage

func NewPage(path LocationPath, setup PageSetup) *Page

func (*Page) AddLayouts

func (page *Page) AddLayouts(layout ...PageComponent)

func (*Page) AddScripts

func (page *Page) AddScripts(urls ...string)

func (*Page) Children

func (page *Page) Children(pages Pages)

func (*Page) Component

func (page *Page) Component(component PageComponent)

func (*Page) New

func (page *Page) New(path LocationPath, callback PageSetup) *Page

func (*Page) Render

func (page *Page) Render(lang element.LanguageCode) string

func (*Page) Request

func (page *Page) Request() *http.Request

func (*Page) Response

func (page *Page) Response() http.ResponseWriter

func (*Page) Title

func (page *Page) Title(title string)

func (*Page) Write

func (page *Page) Write()

type PageComponent

type PageComponent func(page *Page) components.IsComponent

type PageSetup

type PageSetup func(page *Page)

type Pages

type Pages []*Page

Directories

Path Synopsis
addons
alpinejs module
google-fonts module
icons module
feather module
fontawesome-5 module
zondicons module
openprops
theme module
value module

Jump to

Keyboard shortcuts

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