2
0

HelloApp.st 322 B

12345678910111213141516
  1. Smalltalk createPackage: 'HelloApp'!
  2. Object subclass: #Hello
  3. instanceVariableNames: ''
  4. package: 'HelloApp'!
  5. !Hello methodsFor: 'not yet classified'!
  6. begin
  7. "Makes me say hello to the user."
  8. | msg button |
  9. msg := 'Hello world!!'.
  10. button := '#sayHello' asJQuery.
  11. button click: [button after: '<p>' , msg , '</p>'].
  12. ! !