jkk / formative

Web forms for Clojure and ClojureScript - rendering, parsing, and validating
208 stars 18 forks source link

dommy is outdated #40

Closed BenjaminVanRyseghem closed 7 years ago

lkrubner commented 8 years ago

Is this still true? Dommy was updated on Apr 23, 2015.

BenjaminVanRyseghem commented 8 years ago

@lkrubner I do not understand your comment

lkrubner commented 8 years ago

@BenjaminVanRyseghem -- sorry, perhaps I misunderstood your remark. "Dommy is outdated" sounds like the library is no longer being updated. But it was updated after your wrote your remark, so perhaps Dommy is no longer outdated? Perhaps it is being actively maintained?

BenjaminVanRyseghem commented 8 years ago

@lkrubner sorry for the late answer :smile:

Dommy it still active, but the dependency to dommy points to a very old version of dommy. But it looks like this project's dead

iku000888 commented 7 years ago

Personally not a high priority, but updating to the latest dommy has API level breakage. If that can be taken care of, I am willing to accept a PR.

Quoting Dommy's README:

Upgrading to 1.0.0+ from 0.X.Y

Version "1.0.0" includes breaking API changes. Here's a quick overview of what's changed:

    dommy.template namespace and all related templating features (node, deftemplate, etc) have been removed from the library.
    Simplified namespace structure. Everything in dommy.macros and dommy.attrs has been moved into dommy.core

https://github.com/plumatic/dommy/pull/85
iku000888 commented 7 years ago

Looks like it is taken care in formidable. @BenjaminVanRyseghem Wink wink ;)

BenjaminVanRyseghem commented 7 years ago

Please tell me what you want me to do :smile:

iku000888 commented 7 years ago

@BenjaminVanRyseghem I am thinking it would just involvle:

If you can get it done, that is really awesome!

iku000888 commented 7 years ago

So I went ahead and got my hands dirty. I am thinking it boils down to how to replace dommy.macros/node, which got removed entirely from dommy.

Some options I can think of:

Would appreciate any feedback!

iku000888 commented 7 years ago

Quickly searched ClojureScript hiccup Alternatives:

https://github.com/ibdknox/crate https://github.com/teropa/hiccups https://github.com/jeluard/hipo

hipo is tempting as it is a descendant of the dommy code... But on the otherhand I do not feel comfortable adding a hiccup rendering solution just to fix a single function in formative.dom.

iku000888 commented 7 years ago

For anyone interested, here is a PR that removes dommy as a dependency. https://github.com/jkk/formative/pull/57

Would appreciate if you can catch any dubious errors!

iku000888 commented 7 years ago

Fixed and testing appreciated! https://clojars.org/formative/versions/0.8.10-rc