question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

allow `{% attrs %}` to render hyphenated attributes ( `aria-label`, `data-script` etc)

See original GitHub issue

from htmx.org

htmx gives you access to AJAX, CSS Transitions, WebSockets and Server Sent Events directly in HTML, using attributes, so you can build modern user interfaces with the simplicity and power of hypertext

htmx attributes are represented in templates tags like other attributes. potential caveat : they are defined with a hyphen hx-get , hx-target, hx-swap

this enhancement could also increase compatibility with alpine, hyperscript and other frameworks that make use of custom HTML attributes, and attrs that are defined with hyphens such as aria-label

Happy to contribute to implementation

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mixxorzcommented, Oct 30, 2022

I’ve released version 0.5.0a0 which makes this case “just work” without any workarounds.

pip install slippers==0.5.0a0
0reactions
lolrenxcommented, Aug 10, 2022

awesome, thank you !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow hyphenated properties to be defined in a component
I receive a warning that data-tooltip has not been declared as a property on the Icon component. However, there is no way to...
Read more >
attrs by Example - attrs 22.2.0 documentation
Keyword-only attributes allow subclasses to add attributes without default values, even if the base class defines attributes with default values:.
Read more >
Hyphenated html attributes with asp.net mvc - Stack Overflow
When using HTML helpers in ASP.NET MVC such as <%= Html.TextBox("name", value, new { attribute = attributeValue }) %> the anonymous object is...
Read more >
Diff - 56612bfb38..640d842b5c - chromium/src - Git at Google
-138,8 +138,7 @@ property_converter, properties); const bool provide_non_client_frame ... Allow windows with no maximum width or height to be snapped.
Read more >
Falcon Sandbox v8.30 © Hybrid Analysis
Please note that by continuing to use this site you consent to the terms of our Data Protection Policy. ACCEPT. Toggle navigation
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found