9e44373f |
`((,val-sym ,form)
,@binders))))
(defmethod handle-pattern append ((pattern feed) form &rest args)
(let ((key->reader '((:author . author)
(:items . collection-class:items)
(:description . description)
(:source-type . source-type)
(:feed-link . feed-link))))
(let* ((val-sym (gensym "VAL"))
(binders (loop for (key binding) on args by #'cddr
for accessor = (cdr (assoc key key->reader))
when accessor append
`((,binding (,accessor ,val-sym))))))
`((,val-sym ,form)
,@binders))))
|
c80616ec |
(defmethod handle-pattern append ((pattern item) form &rest args)
(let ((key->reader '((:author . author)
(:content . content)
(:date . date)
(:id . id)
(:links . links))))
(let* ((val-sym (gensym "VAL"))
(binders (loop for (key binding) on args by #'cddr
for accessor = (cdr (assoc key key->reader))
when accessor append
`((,binding (,accessor ,val-sym))))))
`((,val-sym ,form)
,@binders))))
|