dyoo / whalesong

Whalesong: Racket to JavaScript compiler
http://hashcollision.org/whalesong
250 stars 30 forks source link

web-world API: make it easier to do multiple updates at once #36

Closed dyoo closed 12 years ago

dyoo commented 13 years ago

From sk:

It would be good to have an update-view-css/many (not sure of the name) so we can perform all updates at once.


Maybe something like this?

(bulk-update-view-css id name value id name value ...)

I'm a little unsatisfied because I don't quite know yet the right way to represent this in a programmer-friendly way.

dyoo commented 12 years ago

view-bind-many and view-bind-many* should do the trick. They need to be documented, as does view-prepend-child.