...

Package statements

import "github.com/noirbizarre/gonja/ext/django/statements"
Overview
Index

Overview ▾

Index ▾

Variables
type CommentStmt
    func (stmt *CommentStmt) Position() *tokens.Token
    func (stmt *CommentStmt) String() string
type CycleStatement
    func (stmt *CycleStatement) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
    func (stmt *CycleStatement) Position() *tokens.Token
    func (stmt *CycleStatement) String() string
type FirstofStmt
    func (stmt *FirstofStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
    func (stmt *FirstofStmt) Position() *tokens.Token
    func (stmt *FirstofStmt) String() string
type IfChangedStmt
    func (stmt *IfChangedStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
    func (stmt *IfChangedStmt) Position() *tokens.Token
    func (stmt *IfChangedStmt) String() string
type IfEqualStmt
    func (stmt *IfEqualStmt) Position() *tokens.Token
    func (stmt *IfEqualStmt) String() string
type IfNotEqualStmt
    func (stmt *IfNotEqualStmt) Position() *tokens.Token
    func (stmt *IfNotEqualStmt) String() string
type LoremStmt
    func (stmt *LoremStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
    func (stmt *LoremStmt) Position() *tokens.Token
    func (stmt *LoremStmt) String() string
type SpacelessStmt
    func (stmt *SpacelessStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
    func (stmt *SpacelessStmt) Position() *tokens.Token
    func (stmt *SpacelessStmt) String() string
type TemplateTagStmt
    func (node *TemplateTagStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
    func (stmt *TemplateTagStmt) Position() *tokens.Token
    func (stmt *TemplateTagStmt) String() string
type WidthRatioStmt
    func (stmt *WidthRatioStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error
    func (stmt *WidthRatioStmt) Position() *tokens.Token
    func (stmt *WidthRatioStmt) String() string

Package files

all.go comment.go cycle.go firstof.go ifchanged.go ifequal.go ifnotequal.go lorem.go spaceless.go templatetag.go widthratio.go

Variables

All holds all builtins statements for easier registeration

var All = exec.StatementSet{}

type CommentStmt

type CommentStmt struct {
    Location *tokens.Token
}

func (*CommentStmt) Position

func (stmt *CommentStmt) Position() *tokens.Token

func (*CommentStmt) String

func (stmt *CommentStmt) String() string

type CycleStatement

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

func (*CycleStatement) Execute

func (stmt *CycleStatement) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error

func (*CycleStatement) Position

func (stmt *CycleStatement) Position() *tokens.Token

func (*CycleStatement) String

func (stmt *CycleStatement) String() string

type FirstofStmt

type FirstofStmt struct {
    Location *tokens.Token
    Args     []nodes.Expression
}

func (*FirstofStmt) Execute

func (stmt *FirstofStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error

func (*FirstofStmt) Position

func (stmt *FirstofStmt) Position() *tokens.Token

func (*FirstofStmt) String

func (stmt *FirstofStmt) String() string

type IfChangedStmt

type IfChangedStmt struct {
    Location *tokens.Token
    // contains filtered or unexported fields
}

func (*IfChangedStmt) Execute

func (stmt *IfChangedStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error

func (*IfChangedStmt) Position

func (stmt *IfChangedStmt) Position() *tokens.Token

func (*IfChangedStmt) String

func (stmt *IfChangedStmt) String() string

type IfEqualStmt

type IfEqualStmt struct {
    Location *tokens.Token
    // contains filtered or unexported fields
}

func (*IfEqualStmt) Position

func (stmt *IfEqualStmt) Position() *tokens.Token

func (*IfEqualStmt) String

func (stmt *IfEqualStmt) String() string

type IfNotEqualStmt

type IfNotEqualStmt struct {
    Location *tokens.Token
    // contains filtered or unexported fields
}

func (*IfNotEqualStmt) Position

func (stmt *IfNotEqualStmt) Position() *tokens.Token

func (*IfNotEqualStmt) String

func (stmt *IfNotEqualStmt) String() string

type LoremStmt

type LoremStmt struct {
    Location *tokens.Token
    // contains filtered or unexported fields
}

func (*LoremStmt) Execute

func (stmt *LoremStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error

func (*LoremStmt) Position

func (stmt *LoremStmt) Position() *tokens.Token

func (*LoremStmt) String

func (stmt *LoremStmt) String() string

type SpacelessStmt

type SpacelessStmt struct {
    Location *tokens.Token
    // contains filtered or unexported fields
}

func (*SpacelessStmt) Execute

func (stmt *SpacelessStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error

func (*SpacelessStmt) Position

func (stmt *SpacelessStmt) Position() *tokens.Token

func (*SpacelessStmt) String

func (stmt *SpacelessStmt) String() string

type TemplateTagStmt

type TemplateTagStmt struct {
    Location *tokens.Token
    // contains filtered or unexported fields
}

func (*TemplateTagStmt) Execute

func (node *TemplateTagStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error

func (*TemplateTagStmt) Position

func (stmt *TemplateTagStmt) Position() *tokens.Token

func (*TemplateTagStmt) String

func (stmt *TemplateTagStmt) String() string

type WidthRatioStmt

type WidthRatioStmt struct {
    Location *tokens.Token
    // contains filtered or unexported fields
}

func (*WidthRatioStmt) Execute

func (stmt *WidthRatioStmt) Execute(r *exec.Renderer, tag *nodes.StatementBlock) error

func (*WidthRatioStmt) Position

func (stmt *WidthRatioStmt) Position() *tokens.Token

func (*WidthRatioStmt) String

func (stmt *WidthRatioStmt) String() string