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

Make container tag option fallback to div #163

Open
sn3p opened this issue Jan 12, 2021 · 0 comments
Open

Make container tag option fallback to div #163

sn3p opened this issue Jan 12, 2021 · 0 comments

Comments

@sn3p
Copy link
Collaborator

sn3p commented Jan 12, 2021

So instead of:

container(tag: assigns[:tag] || :div)

We can do:

container(tag: assigns[:tag])

Examples:

container()
# <div>

container(tag: :span)
# <span>

container(tag: :nil)
# <div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant