Documentation ¶
Index ¶
- type ButtonRenderer
- type ComponentRenderer
- type RenderContext
- func (ctx *RenderContext) AttachTo(view mgc.ViewComponentContextSetter)
- func (r *RenderContext) GetRenderer(block string) ComponentRenderer
- func (r *RenderContext) Register(c ComponentRenderer)
- func (ctx *RenderContext) RenderComponent(view mgc.ViewComponentRenderer, args ...interface{}) (string, error)
- func (ctx *RenderContext) SetDefaultTo(view mgc.ViewComponentContextSetter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ButtonRenderer ¶
type ButtonRenderer struct {
Block string
}
func NewButtonRenderer ¶
func NewButtonRenderer() *ButtonRenderer
func (*ButtonRenderer) GetBlock ¶
func (b *ButtonRenderer) GetBlock() string
func (*ButtonRenderer) RenderComponent ¶
func (b *ButtonRenderer) RenderComponent(wr io.Writer, view mgc.ViewComponentRenderer, args ...interface{}) (string, error)
type ComponentRenderer ¶
type RenderContext ¶
type RenderContext struct { *mgc.RenderContext // contains filtered or unexported fields }
func NewRenderContext ¶
func NewRenderContext(t mgc.Templater, wr io.Writer) *RenderContext
func (*RenderContext) AttachTo ¶
func (ctx *RenderContext) AttachTo(view mgc.ViewComponentContextSetter)
func (*RenderContext) GetRenderer ¶
func (r *RenderContext) GetRenderer(block string) ComponentRenderer
func (*RenderContext) Register ¶
func (r *RenderContext) Register(c ComponentRenderer)
func (*RenderContext) RenderComponent ¶
func (ctx *RenderContext) RenderComponent(view mgc.ViewComponentRenderer, args ...interface{}) (string, error)
func (*RenderContext) SetDefaultTo ¶
func (ctx *RenderContext) SetDefaultTo(view mgc.ViewComponentContextSetter)
Click to show internal directories.
Click to hide internal directories.