gomix

package module
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(params ...AppParam)

Types

type AppParam added in v0.0.11

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

func Addons added in v0.0.11

func Addons(addons ...AppParam) AppParam

func Features added in v0.0.11

func Features(features ...AppParam) AppParam

func FragmentAt added in v0.0.11

func FragmentAt(path FragmentPath, component FragmentComponent) 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 Name added in v0.0.11

func Name(name string) AppParam

func PageAt added in v0.0.11

func PageAt(path LocationPath, setup PageSetup) 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(url ...string) AppParam

func Theme added in v0.0.15

func Theme(newTheme *theme.Theme) AppParam

func WebAddons added in v0.0.15

func WebAddons(addons ...AppParam) AppParam

func Webpage added in v0.0.11

func Webpage(features ...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 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) Theme added in v0.0.15

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

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

type Scope added in v0.0.15

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

Directories

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

Jump to

Keyboard shortcuts

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