Re: CLJS: experiencing "callback envy" re closures as DOM event handlers

2017-10-11 Thread hiskennyness
On Wednesday, October 11, 2017 at 1:23:36 PM UTC-4, James Reeves wrote: > > If you output your HTML as DOM nodes, rather than a string, you can just > attach the function directly to the attribute. > It just occurred to me that one advantage of the string approach is that the initial page load

Re: CLJS: experiencing "callback envy" re closures as DOM event handlers

2017-10-11 Thread hiskennyness
On Wednesday, October 11, 2017 at 1:23:36 PM UTC-4, James Reeves wrote: > > If you output your HTML as DOM nodes, rather than a string, you can just > attach the function directly to the attribute. > Aha! I have only ever mucked with innerHTML, I will have to look into this approach. Meanwhil

Re: CLJS: experiencing "callback envy" re closures as DOM event handlers

2017-10-11 Thread James Reeves
If you output your HTML as DOM nodes, rather than a string, you can just attach the function directly to the attribute. On 11 October 2017 at 18:20, hiskennyness wrote: > I am cobbling together my own little CLJS web framework and it is going > well but I am stumped by one bit of interop: suppor