Just add a button in your page with a inspect message
:)
html submit: 'Inspect' callback: #inspect
Now when you press the button you got an inspector.
This is very cool, I was not aware about such things. I like the idea
so much, that I added this example and some others to the callback-demo
action in the bundle 'SmallWiki Examples'.
html anchor: 'Inspector' to: self url callback: #inspect.
html anchor: 'Browser' to: self url callback: #browse.
html anchor: 'Debugger' to: self url callback: #halt.
One could also create a template-component for developer (only) to have
those commands always at their fingertip.
I also changed the semantics of the callback slightly: A callback is
now removed from the cache, after being executed. I think this solves
some problems with blocks getting executed twice, when refreshing a
page or going back and forward with the browser. As we do not have
continuations (yet), it makes no sense to keep them cached.
Cheers
Lukas
--
Lukas Renggli
http://renggli.freezope.org