[plt-scheme] literal html data in servlets

From: Felix Klock's plt proxy (pltscheme at pnkfx.org)
Date: Thu Aug 18 17:28:16 EDT 2005


Its not _exactly_ what you describe below, but the Here-Xexprs I  
developed might come in useful for what you describe.  (I think that  
Here-Xexprs are nicer than using string literals, mainly because you  
don't have to worry about escaping characters.)

Scroll down to the section on "here-xexprs.ss" in:

This is available in planet for MzScheme version 209, I believe via the  
require statement:

(require (planet "here-xexprs.ss" ("pnkfelix" "here-readers.plt" 1 0)))

If there is demand, I could look into what would be involved to get  
this working under version 299. . .


On Aug 18, 2005, at 3:33 PM, Hans Oesterholt-Dijkema wrote:

>  L.S.,
>  Is it possible with the plt-webserver to combine X-Exprs and Plain  
> HTML text with each other?
>  e.g.:
>  (define H1 "XYZ")
>  `(html (head (title "test"))(body (h1 ,H1) (literal  
> "<h2>head2</h2><p><ul><li> 1</li><p><li> 2</li></ul>") (h3 "head3")))
>  Thanks in advance for answers,
>  Hans

"graph coloring is not cool"  -josh

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1131 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20050818/8a027de3/attachment.bin>

Posted on the users mailing list.