[plt-scheme] web-server question

From: Karsten Patzwaldt (karsten at patzwaldt.org)
Date: Mon Dec 8 22:01:45 EST 2008

Hi.

I'm looking for a convenient way to embed links to certain actions
into my servlet code. What I want to do is something like this:

(let ((p <get post from somewhere>))
  `(a ((ref ,(make-url (lambda (request) (remove-post! p) '(html (body
"Post removed")))))) "Remove post " ,(post-title p)))

That's pretty similar to send/suspend, only that it would work the
other way round. Does something like this exist in the PLT web server?

Thanks,

Karsten


Posted on the users mailing list.