[squeak-dev] Clamato & jQuery (was Re: <script language="smalltalk">)

Colin Putney colin at wiresong.com
Fri Nov 26 05:58:33 UTC 2010


On Thu, Nov 25, 2010 at 7:52 PM, Chris Cunnington
<smalltalktelevision at gmail.com> wrote:


> Write in the Smalltalk-ese - magic happens - and it alters the DOM. jQuery
> factors into this somehow.
>
> How does jQuery facilitate this?

No magic. The Clamato bootstrap code parses the Smalltalk code and
generates the equivalent Javascript. If you look at the JQuery class
in the Clamato browser you can see how the jQuery API is wrapped in
Smalltalk.

What's tricky is debugging–sometimes it's hard to map an error message
from the browser back into the Smalltalk source.

Colin



More information about the Squeak-dev mailing list