-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Hello,
I'm importing a ticket from Rails: rails/rails#18098
Please find @rafaelfranca's comment (rails/rails#18098 (comment)) for a repro example.
It seems that ERB doesn't handle well tags embedded within another tag. My goal is to produce ERB code with some values prefilled in the first pass.
Input ERB code:
<div>
<%%= Results: <%= 'first' %> | <%= 'second' %> | <%= 'third' %> %>
</div>
Produces the following output:
<div>
<%= Results: <%= 'first' %> | second | third %>
</div>
Expected output is:
<div>
<%= Results: first | second | third %>
</div>
The first nested ERB tag is skipped. The same happens when there is just one block nested.
This is reproducible in Rails v4.1.8, which is using Erubis v2.7.0.
Metadata
Metadata
Assignees
Labels
No labels