Indeed, html rendering is done in renderOn: methods of widgets.
See the Counter class for example.
Then you can add the widget to the page with jQuery:
Counter new appendToJQuery: 'body' asJQuery
In a workspace, you can do:
[:html | html h1: 'hello world'] appendToJQuery: 'body' asJQuery
> On May 11, 1:08 am, Amber Milan Eskridge
> <[hidden email]> wrote:
>> html input
>> type: 'checkbox';
>> at: 'checked' put: 'checked'.
>> is obviously enough.
> Where that code could be written? I mean: if I type it in a workspace
> i get an error
> (html is nil and does not understand #input).
> So I suppose I can type somethimg like your example code inside a
> method that take html
> as a parameter (like #renderOn: does).
> Is this correct? Sorry for the naive question, but I am triyng to
> understand a bit more
> about "the magic" of that parameter ...