Documentation ¶
Index ¶
- func RenderString(templateString string, data interface{}) (string, error)
- func ToLocalTime(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error)
- func ToLocationTime(in *pongo2.Value, param *pongo2.Value) (*pongo2.Value, *pongo2.Error)
- type PongoOption
- type PongoTemplate
- func (p PongoTemplate) CompileTemplate()
- func (p PongoTemplate) Instance(templateName string, data interface{}) render.Render
- func (p PongoTemplate) LoadTemplate(templatePath string)
- func (p PongoTemplate) Render(w http.ResponseWriter) error
- func (p PongoTemplate) WriteContentType(w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderString ¶
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * render template string * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func ToLocalTime ¶
Types ¶
type PongoOption ¶
================================================================================ * Pongo模版引擎模块 * qq group: 582452342 * email : 2091938785@qq.com * author : 美丽的地球啊 - mliu * ================================================================================
type PongoTemplate ¶
type PongoTemplate struct { Template *pongo2.Template Data interface{} Option *PongoOption }
================================================================================ * Pongo模版引擎模块 * qq group: 582452342 * email : 2091938785@qq.com * author : 美丽的地球啊 - mliu * ================================================================================
func NewPongoTemplate ¶
func NewPongoTemplate(args ...*PongoOption) *PongoTemplate
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * initializer pongo template engine * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func (PongoTemplate) CompileTemplate ¶
func (p PongoTemplate) CompileTemplate()
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * compile template file * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func (PongoTemplate) Instance ¶
func (p PongoTemplate) Instance(templateName string, data interface{}) render.Render
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * gin render interface * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func (PongoTemplate) LoadTemplate ¶
func (p PongoTemplate) LoadTemplate(templatePath string)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * load template file * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func (PongoTemplate) Render ¶
func (p PongoTemplate) Render(w http.ResponseWriter) error
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * Render interface impl * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
func (PongoTemplate) WriteContentType ¶
func (p PongoTemplate) WriteContentType(w http.ResponseWriter)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ * Render interface impl * ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++