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

Forcing a non-hyphenated prop to be set as an attribute #70

Open
trusktr opened this issue Jul 13, 2018 · 1 comment
Open

Forcing a non-hyphenated prop to be set as an attribute #70

trusktr opened this issue Jul 13, 2018 · 1 comment

Comments

@trusktr
Copy link

trusktr commented Jul 13, 2018

How can we force a non-hyphenated prop to be set as an attribute instead of an instance variable? Is there a way?

@trusktr
Copy link
Author

trusktr commented Jul 13, 2018

If it doesn't exist yet, it'd be a nice feature to have some way of making it possible via syntax.

The reason being that one might have some library (f.e. imagine a jQuery plugin) that looks for certain attributes in the DOM in order to apply behaviors.

<!-- Suppose it looks to see how many photos to paginate in a slider: -->
<div photoflow="5">
  <img src="..." />
  <img src="..." />
  <!-- ...  -->
</div>

Someone migrating to Surplus would still want for that to work, and for the attribute to exist on the element.

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