(s string, c pongo2.Context)
| 18 | ) |
| 19 | |
| 20 | func 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 | |
| 32 | func parseTemplateFn(s string, c pongo2.Context) func() { |
| 33 | return func() { |
no test coverage detected
searching dependent graphs…