[cl-who-devel] Generating HTML using the result of a function call

Taylor Venable taylor at metasyntax.net
Wed Jul 30 00:33:53 UTC 2008


On Mon, 28 Jul 2008 11:07:53 +0200
Jens Teich <info at jensteich.de> wrote:

> > ... similar to how CL-WHO:STR and CL-WHO:HTM work?
> 
> Have you already discovered cl-who:fmt?

This won't do it.  For example:

METASYNTAX> (cl-who:with-html-output (*standard-output*)
              (cl-who:fmt "~A" (car '((:p "foo")))))
(P foo)
NIL

I need something like:

METASYNTAX> (cl-who:with-html-output (*standard-output*)
              (cl-who:evaluate (car '((:p "foo")))))
<p>foo</p>
NIL

-- 
Taylor Venable            http://real.metasyntax.net:2357/

foldr = lambda f, i, l: (len(l) == 1 and [f(l[0], i)] or
                         [f(l[0], foldr(f, i, l[1:]))])[0]



More information about the Cl-who-devel mailing list