Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current implementation manages the syntactic sugar that makes HTMX attributes easier to add by the sole usage of
hx
property (added toNode
).My aim here was to extend the Cobweb package while keeping the same look and feel relative to the development experience.
With the exception of adding the special property to the
Node
(insideCobweb.jl
file) value, all the functionality was added to thehtmx.jl
file.Also - I added relevant tests and updated the documentation accordingly.
There are cases where the values of the attributes are predefined (e.g.,
hx-swap
), and some special syntax can be employed to simplify the workflow even more (see theswap
work that I started - and also check the tests).This is for now. I'll consider adding more types in the future - to make sure that illegal states/configuration is unrepresentable.
Regards,