func (t *Template) CreateTemplate() (string, error) { tpl, err := pongo.FromFile(t.Source, nil) if err != nil { return "", err } ctx := pongo.Context(t.Context) out, err := tpl.Execute(&ctx) if err != nil { return "", err } return *out, nil }
func (t *Template) CreateTemplate() (string, error) { tpl, err := pongo.FromFile(t.Source, nil) if err != nil { return "", err } ctx := pongo.Context(t.Context) out, err := tpl.Execute(&ctx) if err != nil { return "", err } return *out, nil }