MCPcopy
hub / github.com/flosch/pongo2 / Execute

Method Execute

parser_expression.go:124–131  ·  view source on GitHub ↗
(ctx *ExecutionContext, writer TemplateWriter)

Source from the content-addressed store, hash-verified

122}
123
124func (expr *power) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error {
125 value, err := expr.Evaluate(ctx)
126 if err != nil {
127 return err
128 }
129 writer.WriteString(value.String())
130 return nil
131}
132
133func (expr *Expression) Evaluate(ctx *ExecutionContext) (*Value, *Error) {
134 v1, err := expr.expr1.Evaluate(ctx)

Callers

nothing calls this directly

Calls 3

EvaluateMethod · 0.95
WriteStringMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected