Hi Chris,

It's a template mechanism. The HTML files in ComSwiki are actually HTML + 
Smalltalk code.  That Smalltalk code is executed in the image.  That part of 
ComSwiki works the same as PWS (basically -- ComSwiki's implementation is more 
sophisticated, and Jeff Rick created a whole hierarchy of template files).  
That's described in the book "Squeak: Object-oriented design with multimedia 
applications."  (It's nice to have a reason to recommend that book :-)

http://wiki.squeak.org/squeak/1801

Mark


-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Chris Cunnington
Sent: Sun 2/3/2008 2:50 AM
To: pws@cc.gatech.edu
Subject: [Pws] Buttons in ComSwiki
 
Hi PWS,

I'm looking at ComSwiki, and I'm curious about how the external Smalltalk
files are used. I think that the scripts in the actions folder are activated
by buttons. I've never seen Smalltalk code in external files -- always in
the image. 

I don't understand how the scripts are input into the image at the prompting
of a button. I don't see how the script knows where to insert itself, how it
contextualizes itself.

I know from the Squeak man page that a file can be added to the command line
and inserted: 

    squeak -headless squeak.image helloworld.st&

That's the only way I know to input a file with Smalltalk into an image. It
would execute in the Workspace.

I guess these action files, all 117 of them, are being executed on the
Workspace also. But how are they being pulled into the image by a
button/link? 

Chris 
_______________________________________________
Pws mailing list
Pws@cc.gatech.edu
https://mailman.cc.gatech.edu/mailman/listinfo/pws

_______________________________________________
Pws mailing list
Pws@cc.gatech.edu
https://mailman.cc.gatech.edu/mailman/listinfo/pws

Reply via email to