How to use another variable in defining a new variable?


#1

I want to do the following:

{{ $link := "https://blablabla/(lower .someVar)" }}

The lower function doesn’t do its job. What should I do to achieve my goal?


#2

What output are you currently getting?


#3

It looks like you need printf here…

{{ $link := printf "https://blablabla/%s" (lower .someVar) }}

#4

The function call just used to get printed as plain test.


#5

Thanks, I also reached to the same conclusion.