node->cons fonksiyonu, sadece test için
This commit is contained in:
@@ -43,6 +43,15 @@
|
||||
(setf *yeni-satır* t))
|
||||
|
||||
|
||||
(defun node->cons (node)
|
||||
"node u listeye çevirir."
|
||||
(if (stringp node)
|
||||
node
|
||||
(if (null (children node))
|
||||
(list (tag node) (props node) (value node))
|
||||
(append (list (tag node) (props node))
|
||||
(mapcar #'node->cons (children node))))))
|
||||
|
||||
(defparameter bir-node
|
||||
(node! :html (list (node! :head
|
||||
(list (node! :title nil nil "başlık"))
|
||||
|
||||
Reference in New Issue
Block a user