Not discounting, just trying to understand. You’re saying you have something like:
```eex
<% for dir <- directories do %>
<% for file <- File.ls(dir) do %>
{ "file": <%= file %> }
<% end %>
<% end %>
```
Based on what I’ve seen, that JSON bit won’t generate because neither of the for loops uses `<%=`.
Or are you doing something more like Jim’s case where you’re using a for loop to configure a local variable and then using `<%=` forms to generate?
I’m perfectly willing to be wrong in this case, but ultimately this feels like something that the compiler should be able to detect some cases like this, as the documentation calls this out explicitly (
https://hexdocs.pm/eex/EEx.html#module-tags; see the paragraph about `if` statements).
If I’m wrong, then I withdraw the request. I’m just annoyed that I was bitten by this for two months and the ease with which I missed it every time I looked at the code.
-a