Discussion:
using cl-who to expand dynamically created s-html?
Jim Prewett
2012-05-24 17:41:33 UTC
Permalink
Content preview: Hi All, I've been (happily) using cl-who for quite a while,
but now I'm stuck! I'd like to use cl-who to expand s-expressions (which
are generated on the fly) into HTML. So, instead of doing what I normally
do like this: [...]

Content analysis details: (-0.7 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low
trust
[129.24.245.111 listed in list.dnswl.org]
-0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay
domain
Archived-At: <http://permalink.gmane.org/gmane.lisp.who.general/306>


Hi All,

I've been (happily) using cl-who for quite a while, but now I'm stuck!
I'd like to use cl-who to expand s-expressions (which are generated on
the fly) into HTML.

So, instead of doing what I normally do like this:

(cl-who:with-html-output (*standard-output*)
(cl-who:htm
(:pre "this is some preformatted text")))

I'd like to do something like this (where the s-exprs are generated by
calling a function):
(cl-who:with-html-output (*standard-output*)
(cl-who:htm
(funcall #'(lambda () '(:pre "this is some preformatted text")))))

Of course, this doesn't work as with-html-output is a macro.

I feel like I'm missing something horribly obvious! :)

Thanks for any help you can provide,
Jim

James E. Prewett ***@Prewett.org ***@hpc.unm.edu
Systems Team Leader LoGS: http://www.hpc.unm.edu/~download/LoGS/
Designated Security Officer OpenPGP key: pub 1024D/31816D93
HPC Systems Engineer III UNM HPC 505.277.8210

Loading...