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

Function parseTemplate

pongo2_test.go:20–30  ·  view source on GitHub ↗
(s string, c pongo2.Context)

Source from the content-addressed store, hash-verified

18)
19
20func parseTemplate(s string, c pongo2.Context) string {
21 t, err := testSuite2.FromString(s)
22 if err != nil {
23 panic(err)
24 }
25 out, err := t.Execute(c)
26 if err != nil {
27 panic(err)
28 }
29 return out
30}
31
32func parseTemplateFn(s string, c pongo2.Context) func() {
33 return func() {

Callers 1

parseTemplateFnFunction · 0.85

Calls 2

FromStringMethod · 0.80
ExecuteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…