Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Need to Replace {{ }} in Template without Losing Functionality #2961

Open
Lorenzofini opened this issue Jan 9, 2025 · 1 comment
Open

Need to Replace {{ }} in Template without Losing Functionality #2961

Lorenzofini opened this issue Jan 9, 2025 · 1 comment

Comments

@Lorenzofini
Copy link

Lorenzofini commented Jan 9, 2025

Hello,

I need to replace the {{ }} syntax in the following template:

{{ with getSecretByName "d821f21d-aa90-453b-8448-8c78c1160a0e" "dev" "/" "POSTHOG_HOST" }}
{{ if .Value }}
password = "{{ .Value }}"
{{ end }}
{{ end }}

However, I want to ensure that all functionalities are retained. I attempted using << >> as an alternative, but it did not work. Is there any other character or syntax I can use to achieve this?

Thank you for your help!

@akhilmhdh
Copy link
Member

@Lorenzofini This is a golang template. So kindly check into that to know more.

Like: twpayne/chezmoi#1706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants