I made a mistake. I wanted to mirror the reagent and eucalypt API:
(render [hiccup] elt)
but reagami has (render elt [hiccup]) - should I make breaking change? π±It's a function you'll typically call one or two places in your code base. It's not important. FWIW, Replicant has el hiccup as well. I like the partial-test to help decide these things. It makes much more sense to partially apply the element than the hiccup π€· π
I like that replicant has el hiccup. Thanks!
Also another thing: reagami. I have trouble remembering the name, this is a bad sign... Maybe I should change it
I think it works π
was the intended pun react+origami? it doesn't quite work for me either since ori-gami is literally fold-paper in japanese (you're cutting off the 'fold' stem)
I like the update-test too - (update elts 0 render h) seems more natural than having to say (update elts 0 #(render h %))
Yeah itβs a pun on origami. What the lib does is convert hiccup to DOM and morph. So maybe the name should include those words
Hiccup2dom is too boring
Maybe this name works: haccup, hack the DOM with hiccup
I was wondering about the 'fold' metaphor, isn't it more like 'interleaving / splicing' really - oh how about 'splint' :P
might be a bit too close to squint though
splint already exists as a linter (#splint)
fold is also a term from functional programming, so that's why it may be funny. maybe I'll just stick with reagami although it doesn't make sense in japanese ;)
heh fair enough, 'reactive paper' isn't too far off either
:-)