瀏覽代碼

merged with Petton's

Bernat Romagosa 13 年之前
父節點
當前提交
fef7a00e24
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      st/Demo.st

+ 17 - 0
st/Demo.st

@@ -0,0 +1,17 @@
+Smalltalk current createPackage: 'Demo' properties: #{}!
+Widget subclass: #HelloWorld
+	instanceVariableNames: ''
+	category: 'Demo'!
+
+!HelloWorld methodsFor: 'not yet classified'!
+
+renderOn: html
+	html h1: 'hello world!!'
+! !
+
+!HelloWorld class methodsFor: 'not yet classified'!
+
+initialize
+	^ self new appendToJQuery: 'body' asJQuery
+! !
+