Skip to content

Generator of main closing tag is broken if yield has arguments #98

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

Closed
martinadamek opened this issue Dec 18, 2021 · 2 comments · Fixed by #106
Closed

Generator of main closing tag is broken if yield has arguments #98

martinadamek opened this issue Dec 18, 2021 · 2 comments · Fixed by #106

Comments

@martinadamek
Copy link

It happens for example in JumpstartRails templates, where one of yields uses is <%= yield :title %>.
Closing </main> tag is not inserted in application.html.erb and the file ends up broken after ./bin/rails tailwindcss:install is executed.

@dhh
Copy link
Member

dhh commented Dec 19, 2021

cc @dixpac

@dixpac
Copy link
Contributor

dixpac commented Dec 20, 2021

Thanks @dhh, I'll take a look tomorrow.

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 a pull request may close this issue.

3 participants