Le lundi 22 juin 2009 à 17:13 +0200, Janko Mivšek a écrit : > -------- Izvirno sporočilo -------- > Zadeva: Re: [Help-smalltalk] iliad and blocks > Datum: Mon, 22 Jun 2009 17:02:47 +0200 > Od: Paolo Bonzini <[email protected]> > Za: Janko Mivšek <[email protected]> > > >> I guess then #render:/#renderOn: vs. #build:/#buildOn: is just a matter > >> of Seaside vs. Aida legacy. > > > > This is not just a matter of naming. Both approaches are actually > > pretty different. > > > > While #render renders HTML immediately and directly to the response, > > #build in both Iliad and Aida builds first a composite tree of the > > Widget/Component/Page, then the next step is actual rendering of HTML to > > the response. > > > > That's why they are "painting" the page while we are "composing" it. > > Interesting, I saw that afterwards from the implementation of Element.
The main advantage of this approach is that you can modify an element after its creation. This way you can for instance add a script to the head element of a page after the page creation. Using elements avoids the need to have documents like seaside ones to do it. This could have a HTML building time cost, since it's done in 2 steps, but I tried to benchmark the two approaches, and I didn't see any relevant difference. Anyway because of how widgets are updated, the Iliad multi counter is 3-4 times faster than the seaside one :) Nico
signature.asc
Description: Ceci est une partie de message numériquement signée
_______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
