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

Method Execute

nodes_html.go:13–23  ·  view source on GitHub ↗
(ctx *ExecutionContext, writer TemplateWriter)

Source from the content-addressed store, hash-verified

11}
12
13func (n *nodeHTML) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error {
14 res := n.token.Val
15 if n.trimLeft {
16 res = strings.TrimLeft(res, tokenSpaceChars)
17 }
18 if n.trimRight {
19 res = strings.TrimRight(res, tokenSpaceChars)
20 }
21 writer.WriteString(res)
22 return nil
23}

Callers

nothing calls this directly

Calls 1

WriteStringMethod · 0.65

Tested by

no test coverage detected