dominate icon indicating copy to clipboard operation
dominate copied to clipboard

Add support for HTMX and Unpoly tags

Open alexhughson opened this issue 1 year ago • 3 comments

This PR adds the necessary support to render HTML for the Unpoly and HTMX libraries.

The biggest change is adding util.novalue which can be set as the attribute of a class to make it render in HTML without a value.

It also adds hx_ and up_ as prefixes for attributes to be converted from underscores to dashes.

alexhughson avatar Aug 01 '24 16:08 alexhughson

Have a look also in this pull request.

https://github.com/Knio/dominate/pull/203

nikalexis avatar Aug 28 '24 11:08 nikalexis

In the past I have not accepted any 3rd-party integrations (and still don't wish to in the main library), but would like to find a middle ground. Please see #210 if you'd like to continue this PR

Knio avatar Dec 31 '24 01:12 Knio

@Knio this is a great library, thanks for all the leg work you have done to get it to this point. I didn't realize until I started using it how much I've been longing to get away from Jinja templates and raw HTML.

but would like to find a middle ground. Please see https://github.com/Knio/dominate/pull/210 if you'd like to continue this PR

I add some comments to the PR that I think, with minor changes, would make it a good middle ground. Almost no additional burden on dominate from a support perspective but all the flexibility needed to support any library that uses custom attribute prefixes for functionality.

rsyring avatar May 31 '25 17:05 rsyring