@flyboarder My Matrix lib has a macro for every tag. I have a macro that writes them all. 🙂 I am pretty sure that is why figwheel cannot handle Matrix 🙂 🙂 I use the macros to hide boilerplate. That might be a truism.
Hang on, I keep shifting code between repos. Let me find the latest/greatest..
Here is the macroware: https://github.com/kennytilton/mxweb/blob/master/cljs/webmx/src/tiltontec/webmx/gen.cljc
Actually I have a
deftags macro invoke
deftag on a long list of tags I scraped from somewhere.
I hate typing.
The final result would be a macro like
div that (1) offers flexibility with parameters (like multi-methods only different) so I can leave off unnecessary params and (2) wraps tag children in “lifecycle” plumbing necessary to the dataflow framework.
In action (the Flux Challenge) it looks like this: https://github.com/kennytilton/mxweb/blob/master/cljs/webmx/src/tiltontec/webmx/example/flux_challenge.cljs
You can find TodoMVC at the same level in the repo tree.
ps. You will note my projects are spawned by
lien mies... or sth. That can build my code. pps. I suspect the macros because I think that is where the wheels came off with figwheel (pun unintended), but that is wild speculation.
cool stuff I’ll take a look later today!
@jjttjj the previous version of loop-tpl* with the
remove could be improved, since we already know
reduce is faster
but it’s better than the reference implementation
oh yeah good point