jet

package
v1.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2018 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Overview

Copyright 2017 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

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(templateDir string, args ...logger.Logger) driver.Driver

Types

type Jet

type Jet struct {
	// contains filtered or unexported fields
}

func (*Jet) ClearCache

func (self *Jet) ClearCache()

func (*Jet) Close

func (self *Jet) Close()

func (*Jet) Debug

func (self *Jet) Debug() bool

func (*Jet) Fetch

func (self *Jet) Fetch(tmpl string, data interface{}, funcMap map[string]interface{}) string

func (*Jet) Init

func (self *Jet) Init()

func (*Jet) Logger

func (self *Jet) Logger() logger.Logger

func (*Jet) MonitorEvent

func (self *Jet) MonitorEvent(fn func(string))

func (*Jet) RawContent

func (self *Jet) RawContent(tmpl string) (b []byte, e error)

func (*Jet) Render

func (self *Jet) Render(w io.Writer, tmpl string, data interface{}, c echo.Context) error

func (*Jet) SetContentProcessor

func (self *Jet) SetContentProcessor(fn func([]byte) []byte)

func (*Jet) SetDebug

func (self *Jet) SetDebug(on bool)

func (*Jet) SetFuncMap

func (self *Jet) SetFuncMap(fn func() map[string]interface{})

func (*Jet) SetLogger

func (self *Jet) SetLogger(l logger.Logger)

func (*Jet) SetManager

func (self *Jet) SetManager(mgr driver.Manager)

func (*Jet) TmplDir

func (self *Jet) TmplDir() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL