gomix

package module
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(params ...AppParam)

func Style added in v0.0.20

func Style(props ...styles.ApplyProp) []styles.ApplyProp

Types

type AppParam added in v0.0.11

type AppParam func(app *Application) (scope Scope, fn func(params ...any))

func Addons added in v0.0.11

func Addons(addons ...AppParam) AppParam

func DefaultTitle added in v0.0.33

func DefaultTitle(title string) AppParam

func Features added in v0.0.11

func Features(features ...AppParam) AppParam

func FragmentAt added in v0.0.11

func FragmentAt(path FragmentPath, params ...AppParam) AppParam

func FragmentComponent

func FragmentComponent(component fragmentComponent) AppParam

func JavaScripts added in v0.0.31

func JavaScripts(contents ...string) AppParam

func Layout added in v0.0.11

func Layout(component components.IsComponent) AppParam

func Logger added in v0.0.11

func Logger() AppParam

func Metadata added in v0.0.17

func Metadata(metaParams ...AppParam) AppParam

func Name added in v0.0.11

func Name(name string) AppParam

func NotFoundPage added in v0.0.33

func NotFoundPage(params ...AppParam) AppParam

func PageAt added in v0.0.11

func PageAt(path LocationPath, params ...AppParam) AppParam

func PageComponent

func PageComponent(component pageComponent) AppParam

func PageFragmentComponent added in v0.0.17

func PageFragmentComponent(component pageComponent) AppParam

func PageLayout added in v0.0.33

func PageLayout(layout pageComponent) AppParam

func PageTitle added in v0.0.17

func PageTitle(title string) AppParam

func Port added in v0.0.11

func Port(port int) AppParam

func Rest added in v0.0.11

func Rest(apis ...AppParam) AppParam

func Scripts added in v0.0.11

func Scripts(urls ...string) AppParam

func ScriptsDefer added in v0.0.31

func ScriptsDefer(urls ...string) AppParam

func StyleGlobal added in v0.0.20

func StyleGlobal(css CSS) AppParam

func Stylesheets added in v0.0.20

func Stylesheets(url ...string) AppParam

func Theme added in v0.0.15

func Theme(newTheme *theme.Theme) AppParam

func TitleTemplate added in v0.0.33

func TitleTemplate(title string) AppParam

func Web added in v0.0.17

func Web(features ...AppParam) AppParam

func WebAddons added in v0.0.15

func WebAddons(addons ...AppParam) AppParam

type Application added in v0.0.11

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

func (*Application) Apply added in v0.0.11

func (app *Application) Apply(scope Scope, param AppParam)

func (*Application) InstallAddon added in v0.0.11

func (app *Application) InstallAddon(addonName string)

func (*Application) IsAddonActivated added in v0.0.11

func (app *Application) IsAddonActivated(addonName string) bool

type CSS added in v0.0.20

type CSS map[string][]styles.ApplyProp

type Fragment

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

func (*Fragment) Render

func (fragment *Fragment) Render()

func (*Fragment) Request

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

type FragmentParam added in v0.0.17

type FragmentParam func(fragment *Fragment)

type FragmentPath

type FragmentPath string

type LocationPath

type LocationPath string

type Page

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

func (*Page) Children

func (page *Page) Children(pages Pages)

func (*Page) Inherit added in v0.0.17

func (page *Page) Inherit(path LocationPath, params ...PageParam) *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) Theme added in v0.0.15

func (page *Page) Theme(t *theme.Theme)

type PageParam added in v0.0.17

type PageParam func(page *Page)

type PageParams added in v0.0.17

type PageParams []PageParam

type PageSetup

type PageSetup func(page *Page)

type PageComponent func(page *Page) components.IsComponent

type Pages

type Pages []*Page

type Scope added in v0.0.15

type Scope string
const (
	AppScope      Scope = "app"
	WebScope      Scope = "web"
	PageScope     Scope = "page"
	FragmentScope Scope = "fragment"
	RestScope     Scope = "rest"
	SocketScope   Scope = "ws"
	SSEScope      Scope = "sse"
	AssetsScope   Scope = "assets"
)

Jump to

Keyboard shortcuts

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