Documentation ¶
Index ¶
- type TemplateConfig
- type TemplateDataGetter
- type TemplateExecutor
- func (_m *TemplateExecutor) Config() tpl.TemplateConfig
- func (_m *TemplateExecutor) Execute(w io.Writer, name string, data interface{}) (string, error)
- func (_m *TemplateExecutor) ExecutePost(w io.Writer, name string, ctx *gin.Context, post *domain.PostDatum) (string, error)
- func (_m *TemplateExecutor) Executor() tpl.TemplateExecutor
- func (_m *TemplateExecutor) Exists(template string) bool
- type TemplateFuncGetter
- type TemplateHandler
- func (_m *TemplateHandler) Data(ctx *gin.Context, post *domain.PostDatum) interface{}
- func (_m *TemplateHandler) ExecuteTpl(w io.Writer, text string, data interface{}) error
- func (_m *TemplateHandler) FuncMap(ctx *gin.Context, post *domain.PostDatum, cfg tpl.TemplateConfig) template.FuncMap
- func (_m *TemplateHandler) GenericFuncMap() template.FuncMap
- func (_m *TemplateHandler) Prepare(c tpl.TemplateConfig) tpl.TemplateExecutor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateConfig ¶
TemplateConfig is an autogenerated mock type for the TemplateConfig type
func (*TemplateConfig) GetExtension ¶
func (_m *TemplateConfig) GetExtension() string
GetExtension provides a mock function with given fields:
func (*TemplateConfig) GetFS ¶
func (_m *TemplateConfig) GetFS() verbisfs.FS
GetFS provides a mock function with given fields:
func (*TemplateConfig) GetMaster ¶
func (_m *TemplateConfig) GetMaster() string
GetMaster provides a mock function with given fields:
func (*TemplateConfig) GetRoot ¶
func (_m *TemplateConfig) GetRoot() string
GetRoot provides a mock function with given fields:
type TemplateDataGetter ¶
TemplateDataGetter is an autogenerated mock type for the TemplateDataGetter type
type TemplateExecutor ¶
TemplateExecutor is an autogenerated mock type for the TemplateExecutor type
func (*TemplateExecutor) Config ¶
func (_m *TemplateExecutor) Config() tpl.TemplateConfig
Config provides a mock function with given fields:
func (*TemplateExecutor) Execute ¶
Execute provides a mock function with given fields: w, name, data
func (*TemplateExecutor) ExecutePost ¶
func (_m *TemplateExecutor) ExecutePost(w io.Writer, name string, ctx *gin.Context, post *domain.PostDatum) (string, error)
ExecutePost provides a mock function with given fields: w, name, ctx, post
func (*TemplateExecutor) Executor ¶
func (_m *TemplateExecutor) Executor() tpl.TemplateExecutor
Executor provides a mock function with given fields:
func (*TemplateExecutor) Exists ¶
func (_m *TemplateExecutor) Exists(template string) bool
Exists provides a mock function with given fields: template
type TemplateFuncGetter ¶
TemplateFuncGetter is an autogenerated mock type for the TemplateFuncGetter type
func (*TemplateFuncGetter) FuncMap ¶
func (_m *TemplateFuncGetter) FuncMap(ctx *gin.Context, post *domain.PostDatum, cfg tpl.TemplateConfig) template.FuncMap
FuncMap provides a mock function with given fields: ctx, post, cfg
func (*TemplateFuncGetter) GenericFuncMap ¶
func (_m *TemplateFuncGetter) GenericFuncMap() template.FuncMap
GenericFuncMap provides a mock function with given fields:
type TemplateHandler ¶
TemplateHandler is an autogenerated mock type for the TemplateHandler type
func (*TemplateHandler) Data ¶
func (_m *TemplateHandler) Data(ctx *gin.Context, post *domain.PostDatum) interface{}
Data provides a mock function with given fields: ctx, post
func (*TemplateHandler) ExecuteTpl ¶
func (_m *TemplateHandler) ExecuteTpl(w io.Writer, text string, data interface{}) error
ExecuteTpl provides a mock function with given fields: w, text, data
func (*TemplateHandler) FuncMap ¶
func (_m *TemplateHandler) FuncMap(ctx *gin.Context, post *domain.PostDatum, cfg tpl.TemplateConfig) template.FuncMap
FuncMap provides a mock function with given fields: ctx, post, cfg
func (*TemplateHandler) GenericFuncMap ¶
func (_m *TemplateHandler) GenericFuncMap() template.FuncMap
GenericFuncMap provides a mock function with given fields:
func (*TemplateHandler) Prepare ¶
func (_m *TemplateHandler) Prepare(c tpl.TemplateConfig) tpl.TemplateExecutor
Prepare provides a mock function with given fields: c