elixir - compilation error: no function clause matching in EEx.Compiler.generate_buffer/4 -


this causes exception, it's obfuscated version:

    <% if @aaa == 1 %>       <b>hi</b>     <% else %>       <b>hi2</b>       <b<%= @var %>     <% end %>       <b><%= @var3 %><%= @var4%>      <% if @var5 == @var6 %>       <b>hi3</b>     <% else %>       <b>hi4</b>     <% end %> 

the error is:

== compilation error on file web/views/my_model_view.ex == ** (functionclauseerror) no function clause matching in eex.compiler.generate_buffer/4 

what's wrong this?

in elixir syntax if's if end.

ruby/rails:

<% if ... %> <% end %> 

elixir/phoenix:

<% if ... %> <% end %> 

Comments