layout

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 9 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 Help added in v0.12.0

func Help(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, last bool, ps *cutil.PageState) string
func NavItems(ps *cutil.PageState) string

func StreamHead

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

func StreamHelp added in v0.12.0

func StreamHelp(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 v1.0.4

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

func StreamNavItems

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

func WriteHead

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

func WriteHelp added in v0.12.0

func WriteHelp(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 v1.0.4

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

func WriteNavItems

func WriteNavItems(qq422016 qtio422016.Writer, 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 v1.0.20

type Plain struct{}

func (*Plain) Body added in v1.0.20

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

func (*Plain) Head added in v1.0.20

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

func (*Plain) Menu added in v1.0.20

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

func (*Plain) Nav added in v1.0.20

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

func (*Plain) StreamBody added in v1.0.20

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

func (*Plain) StreamHead added in v1.0.20

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

func (*Plain) StreamMenu added in v1.0.20

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

func (*Plain) StreamNav added in v1.0.20

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

func (*Plain) WriteBody added in v1.0.20

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

func (*Plain) WriteHead added in v1.0.20

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

func (*Plain) WriteMenu added in v1.0.20

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

func (*Plain) WriteNav added in v1.0.20

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