How do I convert an array to string using the jinja template engine?
flask, jinja2, python
Solution
Actually you are almost there, for join with space, just put it like this:
{{ tags|join(' ') }}
see the jinja docs for more details
Problem
I have an array element called "tags" and would like to convert the array of tags to strings separated by a blank space. But how do you do that in Jinja? I have tried: ``` {{ tags|join }} ```