Friday, April 07, 2006

Action Time

I've just finished implementing a new action handling table for TheGoo at Trexy. It enables me to bind an action to a handler for that action.

For example: [P] -> Profile -> PerlProfiler.pm.

This means typing "goo -p HelloWorld.pm" on the command-line will cause the PerlProfiler.pm to execute on HelloWorld.pm. But it works in the Web environment too:

http://localhost/goo.cgi?action=p&filename=HelloWorld.pm

There is a new internal dispatch mechanism that maps an action to an action handler based on the "type of Thing". All this means that I can start to add functions back into The Goo quickly and the system can expand to handle lots of different Things (e.g., Javascript, HTML, SQL, Python, Ruby, Perl6 etc).

0 comments: