[plt-scheme] Scheme server pages

From: Daniel Pinto de Mello e Silva (daniel.silva at gmail.com)
Date: Fri Dec 24 12:10:42 EST 2004

Hi, I want to use embed a bit of server-side Scheme on my HTML pages. 
So far I threw together a translator to let me write this:

<html>
 <body>
  <p><scheme> (string-append "Hello" " " "world") </scheme>
     User is: <scheme>user</scheme>
  </p>
  <p> Now testing map... </p>
  <p> Files in the current directory:
    <ul>
     <scheme-splice> (map (lambda (file-path)
                          <li><scheme>(path->string file-path))</scheme></li>
                      (directory-list))</scheme-splice>
    </ul>
  </p>
 </body>
</html>

but I was wondering if someone already did this, in which case I'll
throw away my reinvented wheel...

Daniel



Posted on the users mailing list.