[racket] convert scribble block directly to xexpr?

From: Greg Hendershott (greghendershott at gmail.com)
Date: Tue Oct 1 17:41:18 EDT 2013

On Mon, Sep 30, 2013 at 3:54 PM, Stephen Chang <stchang at ccs.neu.edu> wrote:
> Hi users,
>
> Now that Racket has a state-of-the-art package system and a
> smashing-success conference, I think the obvious missing element in
> the path to world domination is our very own pastebin, so I made one
> during the hackathon.
>
> It renders a paste with scribble, to get syntax coloring and doc linking.
>
> (Preview here: pasterack.org, http://www.pasterack.org/pastes/6444)

Cool!

> However, it is currently very slow because it naively writes a
> scribble file to disk and then compiles it with a command line call,
> because I couldnt figure out how to directly convert a scribble block
> to html or xexpr. Does anyone know if this is this possible?

I looked at this once but couldn't figure out how. As far as I could
tell Scribble rendering needs filenames, as opposed to say Racket
ports.

I suppose you could do something like:

    mkfs -q /dev/ram1 8192
    mkdir -p /ramcache
    mount /dev/ram1 /ramcache

:)

Posted on the users mailing list.