* Clarify that data-computed is a pure function
Also make explicit that `data-on-signals-change` is the alternative for
side effects.
* Update attribute_plugins.md
---------
Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
* Emphasize two of the most important facts about d* attributes.
* Expand the attribute casing documentation
The previous top-line message "data-* attributes are case-insensitive", while
true, was very confusing for new users because it is not immedietly clear that
sentence is referring to the HTML spec and not the library of the docs they are reading.
So I've clarified the top-line message, and then expanded the explanation in a
way I hope makes it easier to understand the first time.
* Explain how to use modifiers with `data-signals`
(the object notation variant)
* Clarify it is possible to set both data-signals__ifmissing= and data-signals on the same element
* Update attribute_plugins.md
* Update attribute_plugins.md
---------
Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
* Improve the datastar expression guide
After chatting with Anders, I got a list of "things to know" about D* expressions.
This commit expands upon the current docs, adding more facts, examples and some structure.
* Remove redundant heading
* Document usage of common js operators
* Update datastar_expressions.md
---------
Co-authored-by: Ben Croker <57572400+bencroker@users.noreply.github.com>
* Rename event and dispatch on element
* Add release note
* Upate docs
* Fix test
* Make events bubble up
* Default to kebab-case
* Kebab
* Fix docs
* Default to kebab-case for `data-class-*`
* Fix missing argument
* Finalise docs
* Feature: gzip
Docs: changelog, removed todos
Feature: locking macro for sse generators.
Feature: flowstorm setup
Refactor: the SSE event writing code is now generic
Chore: bumped http-kit version
Feature: new malli schemas + fixes
Docs: adding the how to load more list items doc
* Fix: forgotten closing call
* Docs: fixed text
* Refactor: using write profiles to configure compression and buffering
Docs: modified the docs to reflect the new write profile mechanism
Refactor: changed the malli schema to go with the write profiles
* Feature: better error handling
* Docs: fixed unbalanced brackets / typos
* Docs: fixed example
* Docs: better write profiles docs
* Refactor: consistent namespaced keyword for all option
`:on-open` and `:on-close` options are deprecated
Docs: all callbacks are documented in docstrings
Calling context, return values and exception behavior are documented
* Refactor: using the new callback name everywhere
* Docs: Readme is redone and more docstrings