On Fri Jan 12, 2007 at 04:13:08PM +0100, Toby wrote:
define-easy-handler is a macro, which means that (intern name) doesn't get evaluated unless/until the macro sees fit.
Try defining some-function as a macro too:
(defmacro some-function (name) `(define-easy-handler (,(intern name) :uri ,(concatenate 'string name ".html") :default-request-type :post) ((formarg :parameter-type :keyword)) (html-generator ,name formarg)))
That works. I tried a macro but didn't quite get it right.
Thank you, Toby.
--Jeff