[racket] Racket web servlets, doctype and planet libraries

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sat Oct 2 17:43:38 EDT 2010

On Sat, Oct 2, 2010 at 4:20 PM, Markku Rontu <markku.rontu at iki.fi> wrote:
> Hello everybody,
> I was trying to make some servlets recently and ran into two problems. First
> it was not clear in the documentation how the doctype should be declared for
> random servlets? I didn't want to make a html template based servlet to
> include the doctype. I'd rather create the main parts of the (x)html  pages
> with xexprs in Racket code. What do I need to do?
> I did find in the Schematics cookbook the dherman/xhtml package that seems
> to do what I want but it doesn't seem to work in Racket. Perhaps the library
> isn't updated to Racket? The error I get after requiring it is:
> "C:\...AppData\Roaming\Racket\planet\300\5.0.1\cache\dherman\xhtml.plt\1\2\main.rkt"
> (The system cannot find the file specified.; errno=2)
> Correct report since the directory does not contain main.rkt but only
> info.ss and xhtml.ss.

The planet web page [1] suggests this require:

  (require (planet dherman/xhtml:1:2/xhtml))

it looks like you tried a different one.


[1]: http://planet.racket-lang.org/display.ss?package=xhtml.plt&owner=dherman

Posted on the users mailing list.