Add fragment-p
This commit is contained in:
parent
ef1071404b
commit
2ae90c290e
1 changed files with 4 additions and 1 deletions
|
@ -232,6 +232,9 @@
|
|||
(not (keywordp node))
|
||||
(gethash (alx:make-keyword node) *builtin-elements*)))
|
||||
|
||||
(defun fragment-p (node)
|
||||
(string= node '<>))
|
||||
|
||||
(defun modify-first-leaves (tree test result)
|
||||
(if tree
|
||||
(cons (let ((first-node (first tree)))
|
||||
|
@ -252,6 +255,6 @@
|
|||
,@(modify-first-leaves
|
||||
body
|
||||
(lambda (node)
|
||||
(or (html-element-p node) (string= node '<>)))
|
||||
(or (html-element-p node) (fragment-p node)))
|
||||
(lambda (node)
|
||||
(find-symbol (string-upcase node) :piccolo)))))
|
||||
|
|
Loading…
Reference in a new issue