Subject: Re: Beginners questions
From: rpw3@rpw3.org (Rob Warnock)
Date: Sun, 03 Jun 2007 21:14:40 -0500
Newsgroups: comp.lang.lisp
Message-ID: <yrGdnSLpe68N6P7bnZ2dnUVZ_qKqnZ2d@speakeasy.net>
anders <anders.u.persson@gmail.com> wrote:
+---------------
| Daniel Leidisch <n...@leidisch.net> wrote:
| > A web frontend would be both an easy and portable GUI solution.
| 
| I like that ide, any framework to rekommende, or just send HTML to
| screen..
+---------------

<http://www.cliki.net/web> list *many* good web-related packages.
At the very minimum I would recommend using one of the HTML-generating
macro packages such as HTOUT or CL-WHO to do the generation of
your HTML for you, e.g.:

    > (with-output-to-string (s)
	(with-html-output (s s)
	  "Content-Type: test/html" (lfd) (lfd)
	  (:html
	    (:head (:title "Small Test Page"))
	    (lfd)
	    ((:body :bgcolor "#ffffff")
	      (lfd)
	      (:h1 "My First Small Page")
	      "Some plain text here" :br :br (lfd)
	      "Some numbers:"
	      (loop for i below 5 do
		(htm (fmt " ~d" i)))
	      (lfd)
	      (:h3 "That's all, folks!!")
	      "Bye, bye..."))))

    "Content-Type: test/html

    <HTML><HEAD><TITLE>Small Test Page</TITLE></HEAD>
    <BODY BGCOLOR='#ffffff'>
    <H1>My First Small Page</H1>Some plain text here<BR><BR>
    Some numbers: 0 1 2 3 4
    <H3>That's all, folks!!</H3>Bye, bye...</BODY></HTML>"
    > 

For some larger examples:

    http://rpw3.org/hacks/lisp/minimal.lhp
    http://rpw3.org/hacks/lisp/appsrv-demo.lhp


-Rob

p.s. The "LHP" infrastructure used in the above examples
is not (yet) available, but is somewhat similar to these,
which you may want to study [especially the first one]:

    http://www.cliki.net/cl-modlisp
    http://www.cliki.net/araneida

Also see this tutorial:

    http://www.cliki.net/A%20Short%20web%20application%20tutorial

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607