Now it would be really nice to have the seaside canvas as a separate component. So may be trying for a couple of day should work. I do not see why you would not succeed. Stef On 2/6/14 14:43, Esteban A. Maringolo wrote:
You can get an HTML canvas to render on it.
WAHtmlCanvas builder render: [:html | html heading level: 1; with: 'Hello world!' ]
This will output a string the html document.
Regards!
Esteban A. Maringolo
2014-06-02 8:42 GMT-03:00 Larry Staton Jr. <larry@larrystaton.com>:
Iâm writing an implementation of Webmachine[1] in Pharo and Iâm at the point where I need to generate some resources. Webmachine does not care how you represent your resources, so Iâm looking for a way to represent my resources in text/html (or application/xml+xhtml). In Ruby, I use ROAR[2] with Webmachine to represent my resources[3]. I really like how Seaside lets you programmatically construct HTML, but Iâm not sure if I can just pull in the HTML generation and leave out the rest. Is this possible or do I have to recreate ROAR in Smalltalk (which isnât a bad idea!)?
Thanks!
/ls
[1] http://smalltalkhub.com/#!/~statonjr/DLWebmachine [2] https://github.com/apotonick/roar [3] https://speakerdeck.com/statonjr/hypermedia-apis-with-webmachine-and-roar
Larry Staton Jr.