layout

package
v0.4.23 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Head(as *app.State, ps *cutil.PageState) string
func Menu(ps *cutil.PageState) string
func MenuItem(i *menu.Item, path []string, breadcrumbs cmenu.Breadcrumbs, indent int, ps *cutil.PageState) string
func Nav(as *app.State, ps *cutil.PageState) string
func NavItem(link string, title string, icon string, description string, last bool, ps *cutil.PageState) string
func NavItems(ps *cutil.PageState) string
func ProfileLink(as *app.State, ps *cutil.PageState) string

func StreamHead

func StreamHead(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func StreamMenu

func StreamMenu(qw422016 *qt422016.Writer, ps *cutil.PageState)

func StreamMenuItem

func StreamMenuItem(qw422016 *qt422016.Writer, i *menu.Item, path []string, breadcrumbs cmenu.Breadcrumbs, indent int, ps *cutil.PageState)

func StreamNav

func StreamNav(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func StreamNavItem added in v0.3.6

func StreamNavItem(qw422016 *qt422016.Writer, link string, title string, icon string, description string, last bool, ps *cutil.PageState)

func StreamNavItems

func StreamNavItems(qw422016 *qt422016.Writer, ps *cutil.PageState)
func StreamProfileLink(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func WriteHead

func WriteHead(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

func WriteMenu

func WriteMenu(qq422016 qtio422016.Writer, ps *cutil.PageState)

func WriteMenuItem

func WriteMenuItem(qq422016 qtio422016.Writer, i *menu.Item, path []string, breadcrumbs cmenu.Breadcrumbs, indent int, ps *cutil.PageState)

func WriteNav

func WriteNav(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

func WriteNavItem added in v0.3.6

func WriteNavItem(qq422016 qtio422016.Writer, link string, title string, icon string, description string, last bool, ps *cutil.PageState)

func WriteNavItems

func WriteNavItems(qq422016 qtio422016.Writer, ps *cutil.PageState)
func WriteProfileLink(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

Types

type Basic

type Basic struct{}

func (*Basic) Body

func (p *Basic) Body(as *app.State, ps *cutil.PageState) string

func (*Basic) Head

func (p *Basic) Head(as *app.State, ps *cutil.PageState) string

func (*Basic) Menu

func (p *Basic) Menu(ps *cutil.PageState) string

func (*Basic) Nav

func (p *Basic) Nav(as *app.State, ps *cutil.PageState) string

func (*Basic) StreamBody

func (p *Basic) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*Basic) StreamHead

func (p *Basic) StreamHead(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*Basic) StreamMenu

func (p *Basic) StreamMenu(qw422016 *qt422016.Writer, ps *cutil.PageState)

func (*Basic) StreamNav

func (p *Basic) StreamNav(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*Basic) WriteBody

func (p *Basic) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

func (*Basic) WriteHead

func (p *Basic) WriteHead(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

func (*Basic) WriteMenu

func (p *Basic) WriteMenu(qq422016 qtio422016.Writer, ps *cutil.PageState)

func (*Basic) WriteNav

func (p *Basic) WriteNav(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

type Page

type Page interface {
	Head(as *app.State, ps *cutil.PageState) string

	StreamHead(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

	WriteHead(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

	Nav(as *app.State, ps *cutil.PageState) string

	StreamNav(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

	WriteNav(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

	Menu(ps *cutil.PageState) string

	StreamMenu(qw422016 *qt422016.Writer, ps *cutil.PageState)

	WriteMenu(qq422016 qtio422016.Writer, ps *cutil.PageState)

	Body(as *app.State, ps *cutil.PageState) string

	StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

	WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)
}

type Plain added in v0.4.0

type Plain struct{}

func (*Plain) Body added in v0.4.0

func (p *Plain) Body(as *app.State, ps *cutil.PageState) string

func (*Plain) Head added in v0.4.0

func (p *Plain) Head(as *app.State, ps *cutil.PageState) string

func (*Plain) Menu added in v0.4.0

func (p *Plain) Menu(ps *cutil.PageState) string

func (*Plain) Nav added in v0.4.0

func (p *Plain) Nav(as *app.State, ps *cutil.PageState) string

func (*Plain) StreamBody added in v0.4.0

func (p *Plain) StreamBody(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*Plain) StreamHead added in v0.4.0

func (p *Plain) StreamHead(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*Plain) StreamMenu added in v0.4.0

func (p *Plain) StreamMenu(qw422016 *qt422016.Writer, ps *cutil.PageState)

func (*Plain) StreamNav added in v0.4.0

func (p *Plain) StreamNav(qw422016 *qt422016.Writer, as *app.State, ps *cutil.PageState)

func (*Plain) WriteBody added in v0.4.0

func (p *Plain) WriteBody(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

func (*Plain) WriteHead added in v0.4.0

func (p *Plain) WriteHead(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

func (*Plain) WriteMenu added in v0.4.0

func (p *Plain) WriteMenu(qq422016 qtio422016.Writer, ps *cutil.PageState)

func (*Plain) WriteNav added in v0.4.0

func (p *Plain) WriteNav(qq422016 qtio422016.Writer, as *app.State, ps *cutil.PageState)

Jump to

Keyboard shortcuts

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