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

Method Execute

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

Source from the content-addressed store, hash-verified

104}
105
106func (expr *simpleExpression) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error {
107 value, err := expr.Evaluate(ctx)
108 if err != nil {
109 return err
110 }
111 writer.WriteString(value.String())
112 return nil
113}
114
115func (expr *term) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error {
116 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