Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
NewMiddleware Iris middleware for multiple templates.
Types ¶
type ViewEngine ¶
type ViewEngine struct { *goview.ViewEngine // contains filtered or unexported fields }
ViewEngine view engine for Iris.
func Wrap ¶
func Wrap(engine *goview.ViewEngine) *ViewEngine
Wrap wraps a view engine for goview.ViewEngine.
func (*ViewEngine) ExecuteWriter ¶
func (e *ViewEngine) ExecuteWriter(w io.Writer, filename string, _ string, bindingData interface{}) error
ExecuteWriter executes a template by its name. It supports multiple templates, see `NewMiddleware` and `Middleware` too.
func (*ViewEngine) Ext ¶
func (e *ViewEngine) Ext() string
Ext returns the file extension, it's empty on this case because the goviw engine supports filenames without extension.
func (*ViewEngine) Load ¶
func (e *ViewEngine) Load() error
Load does nothing here, templates are loaded through goview.
Click to show internal directories.
Click to hide internal directories.