You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good docs on the various dispatch targets of the do!/on! multimethods https://github.com/hoplon/hoplon/wiki/HTML-attributes-and-JS-events-(on!,-do!). It seems like the standard uses map to the keyword targets without a trailing /*, not sure yet how those are different except that they seem to accept a single key/value pair rather than a key and map as a value. They all end up in the same calls to set some aspect of the element using a map of key/values, ie the /* versions are reformed into a map before execution, so these versions are probably just to handle the various syntaxes that Hoplon allows for specifying the element.
To understand how Blaze does reactive dom updates via Tracker.autorun:
parentView
https://github.com/meteor/blaze/blob/master/packages/blaze/materializer.js#L140renderFunction
passed to materialize the view returns an htmljs representation of the content to be rendered https://github.com/meteor/blaze/blob/master/packages/blaze/view.js#L348Hoplon uses protocols defined on dom elements themselves to make a lot of the 'magic' work:
/*
, not sure yet how those are different except that they seem to accept a single key/value pair rather than a key and map as a value. They all end up in the same calls to set some aspect of the element using a map of key/values, ie the/*
versions are reformed into a map before execution, so these versions are probably just to handle the various syntaxes that Hoplon allows for specifying the element.Based on the wiki, it looks like Hoplon uses the jquery backend implementations of the do! and on! multimethods by default, via the expansion of the (page) macro https://github.com/hoplon/hoplon/wiki/How-is-a-hl-file-different%3F https://github.com/hoplon/hoplon/blob/master/src/hoplon/jquery.cljs#L40
The text was updated successfully, but these errors were encountered: