[hunchentoot-devel] easy-handler outputs to REPL instead of client

Jens Teich info at jensteich.de
Thu Dec 22 23:18:45 UTC 2011


> (define-easy-handler (tyler :uri "/tyler") ()
>    (multiple-value-bind (records fields)
>        (select [genus] [species] :from "specimens")
>      (loop for rec in records do
>           (loop for label in fields
>              for val in rec do
>                (with-html-output (*standard-output*)
>                  (:dt :class label (str label))
>                  (:dd :class label (str val)))))))

use with-html-output-to-string

-jens




More information about the Tbnl-devel mailing list