Altitude - Hello World #2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Altitude - Hello World #2

Chris Cunnington

This one is a little better, as it creates a canvas.
But it's still pretty raw.

Chris



ALHelloWorld>>handleRequest: aRequest

      | html |
      html := ALHtml5Canvas on: (String new writing).
      html p: 'Hello World'.
      ^ ALResponse status: 200 reason: 'OK' body: (ALEntity html: (html
stream contents))


Reply | Threaded
Open this post in threaded view
|

Re: Altitude - Hello World #2

Colin Putney-3
On Wed, Jul 18, 2012 at 8:06 AM, Chris Cunnington
<[hidden email]> wrote:
>
> This one is a little better, as it creates a canvas.
> But it's still pretty raw.

I just uploaded an Altitude implementation of the classic Seaside
counter application. It in the new AL-Examples package in the
repository at

    http://source.wireosng.ca/al

Run it like this:

    server := ALServer on: 8624 application: ALCounterApplication new.
    server start.
    server stop.