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

Tyler Smith tyler.smith at mail.mcgill.ca
Fri Dec 23 02:01:54 UTC 2011


On Thu, Dec 22, 2011 at 6:18 PM, Jens Teich <info at jensteich.de> wrote:
>> (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
>

with-html-output-to-string produces no output, either to the REPL or
to the browser. Entering just the (M-V-B ...) expression (i.e.,
removing the define-easy-handler form) at the REPL also produces no
output using W-H-O-to-string.

Cheers,

Tyler




More information about the Tbnl-devel mailing list