engine

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTemplateTag added in v1.1.0

func NewTemplateTag(name []byte, attrs map[string][]byte, opts *options.Options, isTopLevel bool) *templateTag

func NewVariableTag added in v1.1.0

func NewVariableTag(name []byte, opts *options.Options) *templateTag

Types

type BuildFile added in v1.1.0

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

func NewBuildFile added in v1.1.0

func NewBuildFile(path string) *BuildFile

type Builder added in v1.1.0

type Builder struct {
	Reader      io.Reader
	Options     *options.Options
	Vars        map[string][]byte
	Content     []byte
	FilesParsed map[string]bool
	HasParent   bool
	// contains filtered or unexported fields
}

func NewBuilder added in v1.1.0

func NewBuilder(r io.Reader, o *options.Options, parent *Builder) *Builder

func (*Builder) Build added in v1.1.0

func (b *Builder) Build() io.Reader

type Manager added in v1.1.0

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

A Manager keeps control over builds and keeps track of what files are in build in addition to containing build-based configuration such as syntax patterns.

func NewManager added in v1.1.0

func NewManager(options *options.Options) *Manager

NewManager creates and initializes a new Manager with a set of defaults

func (*Manager) Build added in v1.1.0

func (m *Manager) Build(buildFile *BuildFile) (io.Reader, error)

func (*Manager) BuildAll added in v1.1.0

func (m *Manager) BuildAll() []string

func (*Manager) BuildToFile added in v1.1.0

func (m *Manager) BuildToFile(b *BuildFile) (string, error)

func (*Manager) NotifyChange added in v1.1.0

func (m *Manager) NotifyChange(file string) []string

Jump to

Keyboard shortcuts

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