I am messing around with web development and would like to do something like the following:
(defun col1 (&rest content) `((:DIV :CLASS "col1")
(:COMMENT " Column 1 start ")
,content goes here
(:COMMENT " Column 1 end ")))
where content is two or more lists returned by a function:
(defun two-list () ....)
that would return
'(:H2 "header")
'(:P "paragraph")
so that
(col1 (two-list))
would return
((:DIV :CLASS "col1")
(:COMMENT " Column 1 start ")
(:H2 "header")
(:P "paragraph")
(:COMMENT " Column 1 end "))
I've tried using the values function, but it only seems to embed one list into the content area. Is it possible to do something like this? Thanks for the help lispers, I'm having a great time learning how to Lisp!