Documentation
¶
Index ¶
- func App(params ...AppParam)
- type AppParam
- func Addons(addons ...AppParam) AppParam
- func Features(features ...AppParam) AppParam
- func FragmentAt(path FragmentPath, component FragmentComponent) AppParam
- func Layout(component components.IsComponent) AppParam
- func Logger() AppParam
- func Name(name string) AppParam
- func PageAt(path LocationPath, setup PageSetup) AppParam
- func Port(port int) AppParam
- func Rest(apis ...AppParam) AppParam
- func Scripts(url ...string) AppParam
- func Theme(newTheme *theme.Theme) AppParam
- func WebAddons(addons ...AppParam) AppParam
- func Webpage(features ...AppParam) AppParam
- type Application
- type Fragment
- type FragmentComponent
- type FragmentPath
- type LocationPath
- type Page
- func (page *Page) AddLayouts(layout ...PageComponent)
- func (page *Page) AddScripts(urls ...string)
- func (page *Page) Children(pages Pages)
- func (page *Page) Component(component PageComponent)
- func (page *Page) New(path LocationPath, callback PageSetup) *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)
- func (page *Page) Title(title string)
- func (page *Page) Write()
- type PageComponent
- 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())
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 PageAt ¶ added in v0.0.11
func PageAt(path LocationPath, setup PageSetup) 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
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) Component ¶
func (page *Page) Component(component PageComponent)
func (*Page) Response ¶
func (page *Page) Response() http.ResponseWriter
type PageComponent ¶
type PageComponent func(page *Page) components.IsComponent
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.