Documentation
¶
Index ¶
- func App(params ...AppParam)
- func Style(props ...styles.ApplyProp) []styles.ApplyProp
- type AppParam
- func Addons(addons ...AppParam) AppParam
- func DefaultTitle(title string) AppParam
- func Features(features ...AppParam) AppParam
- func FragmentAt(path FragmentPath, params ...AppParam) AppParam
- func FragmentComponent(component fragmentComponent) AppParam
- func JavaScripts(contents ...string) AppParam
- func Layout(component components.IsComponent) AppParam
- func Logger() AppParam
- func Metadata(metaParams ...AppParam) AppParam
- func Name(name string) AppParam
- func NotFoundPage(params ...AppParam) AppParam
- func PageAt(path LocationPath, params ...AppParam) AppParam
- func PageComponent(component pageComponent) AppParam
- func PageFragmentComponent(component pageComponent) AppParam
- func PageLayout(layout pageComponent) AppParam
- func PageTitle(title string) AppParam
- func Port(port int) AppParam
- func Rest(apis ...AppParam) AppParam
- func Scripts(urls ...string) AppParam
- func ScriptsDefer(urls ...string) AppParam
- func StyleGlobal(css CSS) AppParam
- func Stylesheets(url ...string) AppParam
- func Theme(newTheme *theme.Theme) AppParam
- func TitleTemplate(title string) AppParam
- func Web(features ...AppParam) AppParam
- func WebAddons(addons ...AppParam) AppParam
- type Application
- type CSS
- type Fragment
- type FragmentParam
- type FragmentPath
- type LocationPath
- type Page
- func (page *Page) Children(pages Pages)
- func (page *Page) Inherit(path LocationPath, params ...PageParam) *Page
- func (page *Page) Render(lang element.LanguageCode) string
- func (page *Page) Request() *http.Request
- func (page *Page) Response() http.ResponseWriter
- func (page *Page) Theme(t *theme.Theme)
- type PageParam
- type PageParams
- type PageSetup
- type Pages
- type Scope
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppParam ¶ added in v0.0.11
type AppParam func(app *Application) (scope Scope, fn func(params ...any))
func DefaultTitle ¶ added in v0.0.33
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 Layout ¶ added in v0.0.11
func Layout(component components.IsComponent) AppParam
func NotFoundPage ¶ added in v0.0.33
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 ScriptsDefer ¶ added in v0.0.31
func StyleGlobal ¶ added in v0.0.20
func Stylesheets ¶ added in v0.0.20
func TitleTemplate ¶ added in v0.0.33
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 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) Inherit ¶ added in v0.0.17
func (page *Page) Inherit(path LocationPath, params ...PageParam) *Page
func (*Page) Response ¶
func (page *Page) Response() http.ResponseWriter
type PageParams ¶ added in v0.0.17
type PageParams []PageParam
Directories
¶
| Path | Synopsis |
|---|---|
|
addons
|
|
|
alpinejs
module
|
|
|
google-fonts
module
|
|
|
icons
module
|
|
|
ant-design-icons
module
|
|
|
feather
module
|
|
|
fontawesome-5
module
|
|
|
zondicons
module
|
|
|
openprops
|
|
Click to show internal directories.
Click to hide internal directories.