Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konnorrogers/stimulite
A stimulus-lite
https://github.com/konnorrogers/stimulite
Last synced: 5 days ago
JSON representation
A stimulus-lite
- Host: GitHub
- URL: https://github.com/konnorrogers/stimulite
- Owner: KonnorRogers
- License: mit
- Created: 2023-10-16T13:06:38.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-12T18:14:48.000Z (about 1 year ago)
- Last Synced: 2024-05-01T15:26:48.455Z (7 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Purpose
## Coming soon...
## Why `data-lite-target` and not `data-[identifier]-target=""`
Because It's verbose and I don't like it?
It also means we have a static attribute to listen for so we don't need to listen to
every attribute change making the attribute filter more performant.## Why no `data-action`
I have personally never liked `data-action`. I find that the markup easily gets lost when refactoring,
and it also presents a CSP issue when unsafe functions are bound to controller.Further Reading:
## Why no `data-[identifier]-outlet`, `data-[value-name]-value`, `data-[identifier]-class`
I don't find myself reaching for these things.