[hunchentoot-devel] How to pass define-easy-handler symbol?
Jeffrey Cunningham
jeffrey at cunningham.net
Sat Jan 13 15:21:07 UTC 2007
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
More information about the Tbnl-devel
mailing list