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

FEATURE: shortcut for setting key equal to content #46

Open
silveltman opened this issue Jun 22, 2023 · 0 comments
Open

FEATURE: shortcut for setting key equal to content #46

silveltman opened this issue Jun 22, 2023 · 0 comments

Comments

@silveltman
Copy link

I like this practive very much:

  <h1 data-rosey={content.heading}>
    {content.heading}
  </h1>

Give me te following benefits:

  • Never think about key names
  • Never duplicates, since the key name directly represents the content

I would love to see a feature for this! :) So we could do this:

  <h1 data-rosey>
    {content.heading}
  </h1>

or even better:

  <h1 rosey>
    {content.heading}
  </h1>

Would love to hear your thoughts on this and any potential problems I'm missing

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