Python variable:
names = ["a", "b"]
What I'm writing currently in the Jinja2 template:
c({{ names | join(",") }})
What I use in the template above:
c(a, b)
However, I really need to:
c("a", "b")
I checked the Jinja2 document but did not find a filter for this. Anyone have any ideas on this in Jinja2?
Hanfei sun
source share