hoplon

The :hoplon: ClojureScript Web Framework - http://hoplon.io/
kennytilton 2018-06-28T11:17:15.000024Z

@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.

flyboarder 2018-06-28T21:43:58.000031Z

@hiskennyness link?

kennytilton 2018-06-28T22:12:20.000133Z

Hang on, I keep shifting code between repos. Let me find the latest/greatest..

kennytilton 2018-06-28T22:17:52.000157Z

Here is the macroware: https://github.com/kennytilton/mxweb/blob/master/cljs/webmx/src/tiltontec/webmx/gen.cljc

kennytilton 2018-06-28T22:18:48.000075Z

Actually I have a deftags macro invoke deftag on a long list of tags I scraped from somewhere.

kennytilton 2018-06-28T22:19:15.000125Z

I hate typing.

kennytilton 2018-06-28T22:22:11.000087Z

The final result would be a macro like button or 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.

kennytilton 2018-06-28T22:24:00.000156Z

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

kennytilton 2018-06-28T22:24:30.000296Z

You can find TodoMVC at the same level in the repo tree.

kennytilton 2018-06-28T22:35:58.000089Z

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.

flyboarder 2018-06-28T22:59:15.000237Z

cool stuff I’ll take a look later today!

flyboarder 2018-06-28T23:04:54.000196Z

@jjttjj the previous version of loop-tpl* with the remove could be improved, since we already know reduce is faster

flyboarder 2018-06-28T23:05:09.000197Z

but it’s better than the reference implementation

2018-06-28T23:06:05.000211Z

oh yeah good point