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

Support ERB interpolation in HTML attributes #67

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

marcoroth
Copy link
Owner

This pull request adds support for ERB interpolation in HTML attributes. This allows use-cases like:

ERB Input:

<div class="<%= classes_helper %>">Text</div>

Output:

div(class: classes_helper) { "Text" }

Fixes #48

@marcoroth marcoroth merged commit 1069460 into main Jan 23, 2023
@marcoroth marcoroth deleted the erb-in-html-attributes branch January 23, 2023 03:48
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

Successfully merging this pull request may close these issues.

Interpolating ERB in HTML attributes
1 participant