[plt-scheme] web-server and templates

From: Jordan Johnson (jorjohns at cs.indiana.edu)
Date: Sat Aug 14 12:35:06 EDT 2004

Greetings all,

Has anybody made a template language based on the web-server 
collection?  I'd like to be able to split the HTML out into templates 
and hand it off to somebody else who's more interested in web design 
than I.

Currently I've just been including files of the form

(module mytemplate
   (provide mytemplate-func
   (define (mytemplate-func var ...)
     (string-append <string-or-var> ...)))

and putting the HTML in long strings--which has two annoying problems:  
I've got to watch for quotes in the HTML text, and these modules don't 
seem to get recompiled when I visit the refresh-servlets URL.

Anybody have a better alternative?


Jordan Johnson -- Mammalian Biped

Posted on the users mailing list.