Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRenderHandler ¶
func NewRenderHandler(w http.ResponseWriter, t *template.Template, r string, opts ...RenderOutputOptions) presenter.RenderHandler
NewRenderHandler returns Renderer. optionally you can pass output data.
Types ¶
type HTMLRenderHandler ¶
type HTMLRenderHandler struct { Output interface{} // contains filtered or unexported fields }
Renderer represents html rendering
func (*HTMLRenderHandler) Handle ¶
func (r *HTMLRenderHandler) Handle() error
Handle generate http template.
type RenderOutputOptions ¶
type RenderOutputOptions func(*HTMLRenderHandler)
RenderOutputOptions represents New Renderer options func
func WithOutput ¶
func WithOutput(o interface{}) RenderOutputOptions
WithOutput set optional output data.
Click to show internal directories.
Click to hide internal directories.