Documentation ¶
Index ¶
- func AddPluginMenus(m ...Menu)
- func PageTemplate(ctx context.Context, route string, p Page) string
- func RenderMenu(ctx context.Context, currentRoute string) string
- func StreamPageTemplate(qw422016 *qt422016.Writer, ctx context.Context, route string, p Page)
- func StreamRenderMenu(qw422016 *qt422016.Writer, ctx context.Context, currentRoute string)
- func WritePageTemplate(qq422016 qtio422016.Writer, ctx context.Context, route string, p Page)
- func WriteRenderMenu(qq422016 qtio422016.Writer, ctx context.Context, currentRoute string)
- type BasePage
- type Error
- type Menu
- type Page
- type PluginPage
- func (p *PluginPage) Body() string
- func (p *PluginPage) StreamBody(qw422016 *qt422016.Writer)
- func (p *PluginPage) StreamTitle(qw422016 *qt422016.Writer)
- func (p *PluginPage) Title() string
- func (p *PluginPage) WriteBody(qq422016 qtio422016.Writer)
- func (p *PluginPage) WriteTitle(qq422016 qtio422016.Writer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamPageTemplate ¶
func StreamRenderMenu ¶
func WritePageTemplate ¶
Types ¶
type BasePage ¶
type BasePage struct{}
func (*BasePage) WriteBody ¶
func (p *BasePage) WriteBody(qq422016 qtio422016.Writer)
func (*BasePage) WriteTitle ¶
func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer)
type Error ¶
func (*Error) WriteBody ¶
func (p *Error) WriteBody(qq422016 qtio422016.Writer)
func (*Error) WriteTitle ¶
func (p *Error) WriteTitle(qq422016 qtio422016.Writer)
type Page ¶
type Page interface { Title() string StreamTitle(qw422016 *qt422016.Writer) WriteTitle(qq422016 qtio422016.Writer) Body() string StreamBody(qw422016 *qt422016.Writer) WriteBody(qq422016 qtio422016.Writer) }
type PluginPage ¶
func (*PluginPage) Body ¶
func (p *PluginPage) Body() string
func (*PluginPage) StreamBody ¶
func (p *PluginPage) StreamBody(qw422016 *qt422016.Writer)
func (*PluginPage) StreamTitle ¶
func (p *PluginPage) StreamTitle(qw422016 *qt422016.Writer)
func (*PluginPage) Title ¶
func (p *PluginPage) Title() string
func (*PluginPage) WriteBody ¶
func (p *PluginPage) WriteBody(qq422016 qtio422016.Writer)
func (*PluginPage) WriteTitle ¶
func (p *PluginPage) WriteTitle(qq422016 qtio422016.Writer)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.