The driving factor around {} for elixir within an HTML tag is eex is awkward when trying to handle attributes inside a tag, for example:
<div id="<%= @id %>" class="<%= @class %>">
vs
<div id={@id} class={@class}>
It’s a tradeoff for learning, but this is exactly why we kept regular <%= %> EEx rules outside of HTML tags. I hope that give some insight. The syntax is a 1000% upgrade for me ![]()






















