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 request: Better documentation of conversions between camelCase, snake_case and dasher-ized #807

Open
armchairdj opened this issue Dec 31, 2024 · 1 comment

Comments

@armchairdj
Copy link

armchairdj commented Dec 31, 2024

Every single example in the Stimulus Reference documentation uses a simple, one-word controller name.

Half of the cost of writing stimulus code is making sure to get the conversions from snake_case to dasher-ized to camelCase correct on all of the data-attributes.

The documenation would be so much better if every example used a multi-word controller name so that the example JS and HTML would show how string conversions work.

@armchairdj armchairdj changed the title Feature request: Better documentation Feature request: Better documentation of conversions between camelCase, snake_case and dasher-ized Dec 31, 2024
@94noni
Copy link

94noni commented Jan 10, 2025

you mean having a ref to this doc part for example next to here ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants