This logic is not correct. You are going to end up with an extra , on the end.

I think this would be better:

```
{% if templates_files|length > 0 %}
templates_files: ['{{ template_files|join("', '")'],
...
```