restas icon indicating copy to clipboard operation
restas copied to clipboard

case :render-method issue in define module

Open cage2 opened this issue 9 years ago • 0 comments

Hello,

I am trying to figure out why this issue appeared: https://github.com/archimag/restas-directory-publisher/issues/7 I think changing this function

https://github.com/archimag/restas/blob/master/src/route.lisp#L27

with

(defun` route-render-method (route)
  (funcall (or (slot-value route 'render-method)
               (and (module-render-method (route-module route))
		    #'(lambda () (module-render-method (route-module route))))
               (lambda () #'identity))))

resolve the rendering issue; but because i am not able to understand the internal machinery of the library i can not consider this a solution for that bug, just an hint. I hope can be useful anyway.

Bye! C.

cage2 avatar Nov 14 '16 16:11 cage2