[Helma-user] Arc challenge

Hannes Wallnoefer hannes at helma.at
Mon Feb 4 12:55:32 CET 2008


Here's my version on the Arc forum:

http://arclanguage.org/item?id=1324

2008/2/4, Hannes Wallnoefer <hannes at helma.at>:
> 2008/2/3, Joshua Paine <joshua at papercrown.org>:
> > Paul Graham has a little challenge to show off the terseness of his new
> > Lisp dialect.
> >
> > Here's the original: <http://arclanguage.org/item?id=722>
> > And here's my go with Helma: <http://arclanguage.org/item?id=1099>
>
> Very interesting. I took the occasion to have a look at the Arc
> tutorial. As you'd expect, the Arc web framework (if you can already
> call it a framework) is quite callback-centric, similar to Seaside.
>
> Since Gobi's Markup.jus actually supports callbacks I tried to come up
> with an implementation that actually works along the lines of the arc
> example. I had to extend and fix Markup.js, but here's the (working)
> result:
>
> function said_action() {
>    Html.form({
>        callback: function() {
>          var foo = req.data.foo;
>          Html.link({
>            callback: function() { res.write("you said: " + foo); }
>          }, "click here")}},
>      Html.Input({name: "foo"}),
>      Html.Submit()
>   );
> }
>
> hannes
>
> > I did learn the difference between res.message and session.message in
> > doing it.
> > _______________________________________________
> > Helma-user mailing list
> > Helma-user at helma.org
> > http://helma.org/mailman/listinfo/helma-user
> >
>


More information about the Helma-user mailing list