runtime

package
Version: v0.0.0-...-ed3c113 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(reader io.ReadCloser) (common.Loader, error)

func ToString

func ToString(args ...interface{}) string

Types

type ContextData

type ContextData map[string]interface{}

func (ContextData) Del

func (data ContextData) Del(key string) (value interface{}, ok bool)

func (ContextData) Get

func (data ContextData) Get(key string) (value interface{}, ok bool)

func (ContextData) Len

func (data ContextData) Len() int

func (ContextData) Set

func (data ContextData) Set(key string, value interface{}) interface{}

type Runtime

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

func NewRuntime

func NewRuntime(ilpath string, debug bool) *Runtime

func (*Runtime) Context

func (rt *Runtime) Context(data map[string]interface{}, out io.Writer) common.Context

func (*Runtime) ILPath

func (rt *Runtime) ILPath() string

func (*Runtime) Render

func (rt *Runtime) Render(data map[string]interface{}, path string, out io.Writer) (err error)

Jump to

Keyboard shortcuts

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