tags

package
v0.0.0-...-4f7e1e8 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignFactory

func AssignFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Creates an assign tag

func BreakFactory

func BreakFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Creates a break tag

func CaptureFactory

func CaptureFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Creates an assign tag

func CaseFactory

func CaseFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func CommentFactory

func CommentFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Special handling to just quickly skip over it all

func ContinueFactory

func ContinueFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Creates a continue tag

func ElseFactory

func ElseFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func ElseIfFactory

func ElseIfFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func EndCaptureFactory

func EndCaptureFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func EndCaseFactory

func EndCaseFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func EndCommentFactory

func EndCommentFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func EndForFactory

func EndForFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func EndIfFactory

func EndIfFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func EndRawFactory

func EndRawFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func EndUnlessFactory

func EndUnlessFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func ForFactory

func ForFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func IfFactory

func IfFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func IncludeFactory

func IncludeFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Creates an include tag

func RawFactory

func RawFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Special handling to just quickly skip over it all

func UnlessFactory

func UnlessFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

func WhenFactory

func WhenFactory(p *core.Parser, config *core.Configuration) (core.Tag, error)

Types

type Assign

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

func (*Assign) AddCode

func (a *Assign) AddCode(code core.Code)

func (*Assign) AddSibling

func (a *Assign) AddSibling(tag core.Tag) error

func (*Assign) Execute

func (a *Assign) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Assign) Name

func (a *Assign) Name() string

func (*Assign) Type

func (a *Assign) Type() core.TagType

type Break

type Break struct{}

func (*Break) AddCode

func (b *Break) AddCode(code core.Code)

func (*Break) AddSibling

func (b *Break) AddSibling(tag core.Tag) error

func (*Break) Execute

func (b *Break) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Break) Name

func (b *Break) Name() string

func (*Break) Type

func (b *Break) Type() core.TagType

type Capture

type Capture struct {
	*Common
	// contains filtered or unexported fields
}

func (*Capture) AddSibling

func (c *Capture) AddSibling(tag core.Tag) error

func (*Capture) Execute

func (c *Capture) Execute(w io.Writer, data map[string]interface{}) core.ExecuteState

func (*Capture) Name

func (c *Capture) Name() string

func (*Capture) Type

func (c *Capture) Type() core.TagType

type Case

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

func (*Case) AddCode

func (c *Case) AddCode(code core.Code)

func (*Case) AddSibling

func (c *Case) AddSibling(tag core.Tag) error

func (*Case) Execute

func (c *Case) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Case) Name

func (c *Case) Name() string

func (*Case) Type

func (c *Case) Type() core.TagType

type CaseSibling

type CaseSibling interface {
	Condition() core.Verifiable
	AddLeftValue(value core.Value)
	core.Code
}

type Comment

type Comment struct {
}

Comment tag is a special tag in that, while it looks like a container tag, we treat it as an end tag and just move the parser all the way past the end tag. A

func (*Comment) AddCode

func (c *Comment) AddCode(code core.Code)

func (*Comment) AddSibling

func (c *Comment) AddSibling(tag core.Tag) error

func (*Comment) Execute

func (c *Comment) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Comment) Name

func (c *Comment) Name() string

func (*Comment) Type

func (c *Comment) Type() core.TagType

type Common

type Common struct {
	Code []core.Code
}

func NewCommon

func NewCommon() *Common

func (*Common) AddCode

func (c *Common) AddCode(code core.Code)

func (*Common) Execute

func (c *Common) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

type Continue

type Continue struct{}

func (*Continue) AddCode

func (c *Continue) AddCode(code core.Code)

func (*Continue) AddSibling

func (c *Continue) AddSibling(tag core.Tag) error

func (*Continue) Execute

func (c *Continue) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Continue) Name

func (c *Continue) Name() string

func (*Continue) Type

func (c *Continue) Type() core.TagType

type Else

type Else struct {
	*Common
	// contains filtered or unexported fields
}

func (*Else) AddLeftValue

func (e *Else) AddLeftValue(value core.Value)

func (*Else) AddSibling

func (e *Else) AddSibling(tag core.Tag) error

func (*Else) Condition

func (e *Else) Condition() core.Verifiable

func (*Else) Name

func (e *Else) Name() string

func (*Else) Type

func (e *Else) Type() core.TagType

type ElseIf

type ElseIf struct {
	*Common
	// contains filtered or unexported fields
}

func (*ElseIf) AddSibling

func (e *ElseIf) AddSibling(tag core.Tag) error

func (*ElseIf) Condition

func (e *ElseIf) Condition() core.Verifiable

func (*ElseIf) Name

func (e *ElseIf) Name() string

func (*ElseIf) Type

func (e *ElseIf) Type() core.TagType

type End

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

a generic end tag

func (*End) AddCode

func (e *End) AddCode(code core.Code)

func (*End) AddSibling

func (e *End) AddSibling(tag core.Tag) error

func (*End) Execute

func (e *End) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*End) Name

func (e *End) Name() string

func (*End) Type

func (e *End) Type() core.TagType

type For

type For struct {
	*Common
	// contains filtered or unexported fields
}

func (*For) AddSibling

func (f *For) AddSibling(tag core.Tag) error

func (*For) Execute

func (f *For) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*For) Name

func (f *For) Name() string

func (*For) Type

func (f *For) Type() core.TagType

type If

type If struct {
	*Common
	// contains filtered or unexported fields
}

func (*If) AddSibling

func (i *If) AddSibling(tag core.Tag) error

func (*If) Condition

func (i *If) Condition() core.Verifiable

func (*If) Execute

func (i *If) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*If) Name

func (i *If) Name() string

func (*If) Type

func (i *If) Type() core.TagType

type IfSibling

type IfSibling interface {
	Condition() core.Verifiable
	core.Code
}

type Include

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

func (*Include) AddCode

func (i *Include) AddCode(code core.Code)

func (*Include) AddSibling

func (i *Include) AddSibling(tag core.Tag) error

func (*Include) Execute

func (i *Include) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Include) Name

func (i *Include) Name() string

func (*Include) Type

func (i *Include) Type() core.TagType

type LoopState

type LoopState struct {
	Length  int
	Index   int
	Index0  int
	RIndex  int
	RIndex0 int
	First   bool
	Last    bool
	// contains filtered or unexported fields
}

type Raw

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

Raw tag is a special tag. Like comment it'll forward the parser to past its own end.

func (*Raw) AddCode

func (r *Raw) AddCode(code core.Code)

func (*Raw) AddSibling

func (r *Raw) AddSibling(tag core.Tag) error

func (*Raw) Execute

func (r *Raw) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Raw) Name

func (r *Raw) Name() string

func (*Raw) Type

func (r *Raw) Type() core.TagType

type Unless

type Unless struct {
	*Common
	// contains filtered or unexported fields
}

func (*Unless) AddSibling

func (u *Unless) AddSibling(tag core.Tag) error

func (*Unless) Execute

func (u *Unless) Execute(writer io.Writer, data map[string]interface{}) core.ExecuteState

func (*Unless) Name

func (u *Unless) Name() string

func (*Unless) Type

func (u *Unless) Type() core.TagType

type When

type When struct {
	*Common
	// contains filtered or unexported fields
}

func (*When) AddLeftValue

func (w *When) AddLeftValue(left core.Value)

func (*When) AddSibling

func (w *When) AddSibling(tag core.Tag) error

func (*When) Condition

func (w *When) Condition() core.Verifiable

func (*When) Name

func (w *When) Name() string

func (*When) Type

func (w *When) Type() core.TagType

Jump to

Keyboard shortcuts

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