mustache

package
v0.0.0-...-9bbed00 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expression

type Expression interface {
	Eval(ctx context.Context, scope *scopes.Scope) (string, error)
	DebugString() string
}

type ExpressionList

type ExpressionList struct {
	Expressions []Expression
}

func ParseExpressionList

func ParseExpressionList(s string) (*ExpressionList, error)

func (*ExpressionList) DebugString

func (l *ExpressionList) DebugString() string

func (*ExpressionList) Eval

func (l *ExpressionList) Eval(ctx context.Context, scope *scopes.Scope) (string, error)

type LiteralExpression

type LiteralExpression struct {
	Literal string
}

func (*LiteralExpression) DebugString

func (l *LiteralExpression) DebugString() string

func (*LiteralExpression) Eval

func (l *LiteralExpression) Eval(ctx context.Context, scope *scopes.Scope) (string, error)

type MustacheExpression

type MustacheExpression struct {
	Expression string
}

func (*MustacheExpression) DebugString

func (l *MustacheExpression) DebugString() string

func (*MustacheExpression) Eval

func (l *MustacheExpression) Eval(ctx context.Context, scope *scopes.Scope) (string, error)

type Parser

type Parser struct {
	lexparse.BaseParser
}

func (*Parser) Init

func (p *Parser) Init(s string)

func (*Parser) ParseExpression

func (p *Parser) ParseExpression() (Expression, error)

func (*Parser) ParseExpressionList

func (p *Parser) ParseExpressionList() (*ExpressionList, error)

func (*Parser) ParseLiteralExpression

func (p *Parser) ParseLiteralExpression() (*LiteralExpression, error)

func (*Parser) ParseMustacheExpression

func (p *Parser) ParseMustacheExpression() (*MustacheExpression, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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