Am 18.09.2017 um 09:03 schrieb Craig Latta <craig@blackpagedigital.com>:
Hi Sean--
I'd like to create HTML via a DSL, like Seaside's canvas builder, but without loading a whole web framework. Any ideas?
In Pharo on the SqueakJS virtual machine in a web browser[1], I sketch with live DOM objects, and write them out as HTML. This way, the DSL is the actual JavaScript DOM API which is sitting in the web browser anyway, although driven with Smalltalk messages over the JS bridge. I'm also assured that everything I do with the DOM objects is legitimate, and I can handle DOM API errors live in Smalltalk.
Sure you can do the same with PharoJS. But there are scenarios where you want to have DOM actions without having a browser. You don't have that problem because you are in the browser Norbert
-C
[1] https://caffeine.js.org/pharo
-- Craig Latta Black Page Digital Amsterdam :: San Francisco craig@blackpagedigital.com +31 6 2757 7177 (SMS ok) + 1 415 287 3547 (no SMS)