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

Method Execute

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

Source from the content-addressed store, hash-verified

86}
87
88func (expr *Expression) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error {
89 value, err := expr.Evaluate(ctx)
90 if err != nil {
91 return err
92 }
93 writer.WriteString(value.String())
94 return nil
95}
96
97func (expr *relationalExpression) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error {
98 value, err := expr.Evaluate(ctx)

Callers

nothing calls this directly

Calls 3

EvaluateMethod · 0.95
WriteStringMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected