Smalltalk createPackage: '{%= name %}'! (Smalltalk packageAt: '{%= name %}' ifAbsent: [ self error: 'Package not created: {%= name %}' ]) imports: {'amber/jquery/Wrappers-JQuery'. 'amber/web/Web'. 'silk/Silk'}! Object subclass: #{%= name %} slots: {} package: '{%= name %}'! !{%= name %} methodsFor: 'action'! alert: aString after: aNumberOfMilliseconds [ Terminal alert: aString ] valueWithTimeout: aNumberOfMilliseconds ! doAmberWith | tag | tag := (HTMLCanvas onJQuery: '#output-list' asJQuery) root. tag with: [ :html | html li with: 'Amber Web #with: added me!!' ] ! doConsoleLog | greeting target | greeting := 'Hello'. target := 'world'. console log: #{ #greeting -> greeting. #target -> target. #callback -> [ console log: greeting, ', ', target, '!!' ] } ! doJQueryAppend '#output-list' asJQuery append: '