Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add support for Masterminds/sprig functions in text content template #32

Closed
devatherock opened this issue Feb 13, 2021 · 0 comments · Fixed by #34
Closed

Add support for Masterminds/sprig functions in text content template #32

devatherock opened this issue Feb 13, 2021 · 0 comments · Fixed by #34
Labels
enhancement New feature or request

Comments

@devatherock
Copy link
Owner

Should be a simple change in main.go from parsedTemplate, err := template.New("test").Parse(templateText) to parsedTemplate, err := template.New("test").Funcs(sprig.TxtFuncMap()).Parse(templateText) as done in vela-template-tester

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant