This website stores cookies on your computer. The data is used to collect information about how you interact with our website and allow us to remember you. We use this information to improve and customize your browsing experience and for analytics and metrics about our visitors both on this website and other media.
Student and Software Engineer working in a spare time. In love with Elixir for almost 3 years.
Since Phoenix LiveView 0.16 has brought new HEEx templates (and LEEx are going to be deprecated), you may come across some issues with migrating it.
You need to replace ~L
with ~H
.
~L"""
<%= String.upcase(@title) %>
"""
~H"""
<%= String.upcase(@title) %>
"""
String atrributes
Boolean attributes
/>
You should use https://github.com/phoenixframework/vscode-phoenix extension for HEEx templates syntax coloring.
Here you can find code formatter for HEEx templates (alpha stage) - https://github.com/feliperenan/heex_formatter.
In HEEx <%= %>
, <% %>
can only be used in HTML content and it’s not allowed to use them in HTML tags.
/>
<%= @title %>
HEEx requires Elixir ≥ 1.12.0
to provide accurate file:line:column information in error message.
HEEx templates are being validated during the compilation.