You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> eval Erbse::Engine.new.call("what <%= 'ever' if false %>") => ""
> Erbse::Parser.new.call("what <%= 'ever' if true %>") => [:multi]
==========
<% [].each do %> <% next if true %><% end %>
produces incorrect ruby syntax
> eval Erbse::Engine.new.call("<% [].each do %>\n<% next if true %>\n<% end %>")SyntaxError: (eval):3: syntax error, unexpected keyword_end, expecting end-of-input; end; _buf = _buf.join("".freeze) ^ from (irb):8:in `eval' from (irb):8 from /home/roma/.rvm/rubies/ruby-2.3.3/bin/irb:11:in `<main>'
> Erbse::Parser.new.call("<% [].each do %>\n<% next if true %>\n<% end %>") => [:multi, [:newline], [:block, " next if true ", [:multi, [:newline]]]]
The text was updated successfully, but these errors were encountered:
evaluates to an empty string
==========
produces incorrect ruby syntax
The text was updated successfully, but these errors were encountered: