Documentation
¶
Index ¶
- type App
- func (app *App) Addons(addons ...func(app *App))
- func (app *App) EnableLogger()
- func (app *App) Fragment(path FragmentPath, component FragmentComponent) *Fragment
- func (app *App) Layout(component components.IsComponent)
- func (app *App) Page(path LocationPath, setup PageSetup) *Page
- func (app *App) Scripts(url ...string)
- func (app *App) ServeAtPort(port int)
- 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) Title(title string)
- func (page *Page) Write()
- type PageComponent
- type PageSetup
- type Pages
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 (*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) ServeAtPort ¶
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
|
|
|
theme
module
|
|
|
value
module
|
Click to show internal directories.
Click to hide internal directories.