Documentation ¶
Index ¶
- type Context
- func (context *Context) Item() models.Modellable
- func (context *Context) Params(key string) interface{}
- func (context *Context) ParamsBool(key string) bool
- func (context *Context) ParamsFloat64(key string, fallback float64) float64
- func (context *Context) ParamsInt(key string, fallback int) int
- func (context *Context) ParamsStr(key string) string
- func (context *Context) PrepareRender(viewName string) *Renderer
- type Manager
- type Renderer
- type ViewHandler
- type Viewable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶ added in v0.0.69
type Context struct {
// contains filtered or unexported fields
}
Context used to represent view rendering context with data
func (*Context) Item ¶ added in v0.0.69
func (context *Context) Item() models.Modellable
Item used to retrieve itme in context
func (*Context) ParamsBool ¶ added in v0.0.72
ParamsBool used to retrieve params value in bool
func (*Context) ParamsFloat64 ¶ added in v0.0.69
ParamsFloat64 used to retrieve params value in float64
func (*Context) PrepareRender ¶ added in v0.1.3
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is singleton manager for view module
func (*Manager) PrepareRender ¶ added in v0.1.3
func (*Manager) RegisterView ¶
RegisterView used to register view
func (*Manager) RenderView ¶
RenderView used to render view
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
func (*Renderer) RenderList ¶ added in v0.1.3
RenderList used to render list view with options
func (*Renderer) RenderSingle ¶ added in v0.1.3
func (renderer *Renderer) RenderSingle(item models.Modellable) interface{}
RenderSingle used to render single item's view with options
func (*Renderer) WithParams ¶ added in v0.1.3
func (*Renderer) WithRootKey ¶ added in v0.1.3
type ViewHandler ¶
type ViewHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.