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

Template: Support & document dashes as valid characters in variable and property names #55

Open
michaelpb opened this issue Aug 1, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@michaelpb
Copy link
Contributor

Allow '-' character in symbol names in template syntax. This is especially useful for props. Then, document + test one of the following paths:

  1. Translate to camel when doing JS (keep JS free of properties with - -- probably best, since it's how loadFromDOM works)
  2. Keep the same, and make sure - is used consistently (e.g. in script tags, props['my-best'] instead of props.myBest)
@michaelpb michaelpb added the enhancement New feature or request label Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant