diff options
| author | riton <riton@riton.home> | 2025-03-23 19:57:07 +0300 | 
|---|---|---|
| committer | riton <riton@riton.home> | 2025-03-23 19:57:07 +0300 | 
| commit | 9a09f1577cdb89c17250ff66a9d7152aca65585b (patch) | |
| tree | 4bff102c2636c175f7d2c31a81cf52ab353666cb | |
| parent | 99571117b7be94581afe6668daf56ecec04985ba (diff) | |
node->cons fonksiyonu, sadece test için
| -rw-r--r-- | html-jen.lisp | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/html-jen.lisp b/html-jen.lisp index 41bc1c0..4bcf680 100644 --- a/html-jen.lisp +++ b/html-jen.lisp @@ -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")) | 
