Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion back to ERB results in oddities #954

Open
nbarone-authorium opened this issue Jun 7, 2024 · 0 comments
Open

Conversion back to ERB results in oddities #954

nbarone-authorium opened this issue Jun 7, 2024 · 0 comments

Comments

@nbarone-authorium
Copy link

Running slimrb --erb ./file.html.slim --rails on:

a href=record_form_path(record)
  ==record.value

results in:

<a<% _slim_codeattributes1 = record_form_path(record); if _slim_codeattributes1; if _slim_codeattributes1 == true %> href=""<% else %> href="<%= ::Temple::Utils.escape_html((_slim_codeattributes1)) %>"<% end; end %>>
<%= record.value %>
</a>

Which... doesn't seem like that's what's supposed to happen?

Slim 5.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant