Documentation ¶
Overview ¶
Copyright 2016 Wenhui Shen <www.webx.top>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func New(templateDir string, args ...logger.Logger) driver.Driver
- func Strip(b []byte) []byte
- type Pongo2
- func (a *Pongo2) ClearCache()
- func (a *Pongo2) Close()
- func (self *Pongo2) Debug() bool
- func (a *Pongo2) Fetch(tmpl string, data interface{}, c echo.Context) string
- func (a *Pongo2) Init()
- func (self *Pongo2) Logger() logger.Logger
- func (a *Pongo2) Manager() driver.Manager
- func (a *Pongo2) MonitorEvent(fn func(string))
- func (a *Pongo2) RawContent(tmpl string) (b []byte, e error)
- func (a *Pongo2) Render(w io.Writer, tmpl string, data interface{}, c echo.Context) error
- func (a *Pongo2) SetContentProcessor(fn func([]byte) []byte)
- func (self *Pongo2) SetDebug(on bool)
- func (a *Pongo2) SetFuncMap(fn func() map[string]interface{})
- func (self *Pongo2) SetLogger(l logger.Logger)
- func (a *Pongo2) SetManager(mgr driver.Manager)
- func (self *Pongo2) SetTmplPathFixer(fn func(echo.Context, string) string)
- func (self *Pongo2) TmplDir() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pongo2 ¶
func (*Pongo2) ClearCache ¶
func (a *Pongo2) ClearCache()
func (*Pongo2) MonitorEvent ¶
func (*Pongo2) SetContentProcessor ¶
func (*Pongo2) SetFuncMap ¶ added in v1.1.0
func (*Pongo2) SetManager ¶ added in v1.1.0
func (*Pongo2) SetTmplPathFixer ¶ added in v1.4.3
Click to show internal directories.
Click to hide internal directories.