[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: are dylan macros Turing-complete?
[ catching up on this newsgroup again ]
Chris Double <chris@double.co.nz> writes:
> I do exactly this in my Dylanlibs [1] libraries. See the dom-builder
> library. Code using it looks like:
>
> with-standard-http-result(stream)
> let dom =
> with-dom-builder()
> (html
> (head
> (title ["Test HTTP Server"])),
> (body
> (p ["Testing the Dylan HTTP Server."]),
> (p ((a href: "/formtest1") ["Form test 1"])),
> (p ((a href: "/formtest2") ["Form test 2"])),
> (p ["Counter: "], [*counter* := *counter* + 1])))
> end;
> print-html(dom, stream);
That is very, very cool!
The next time I have to do some dynamic web stuff I am definitely
going to look into using your library.