Export element functions

This commit is contained in:
paku 2024-04-15 22:45:30 +09:00
parent 6882260bb2
commit 1f588b8a62

View file

@ -14,7 +14,9 @@
#:escape-children #:escape-children
#:*escape-html*) #:*escape-html*)
(:export #:html (:export #:html
#:%html
#:<> #:<>
#:%<>
#:define-element #:define-element
#:tag #:tag
#:children #:children
@ -189,7 +191,8 @@
,@(mapcan (lambda (e) ,@(mapcan (lambda (e)
(list `(define-builtin-element ,e) (list `(define-builtin-element ,e)
`(setf (gethash (make-keyword ',e) *builtin-elements*) t) `(setf (gethash (make-keyword ',e) *builtin-elements*) t)
`(export ',e))) `(export ',e)
`(export ',(symbolicate '% e))))
element-names))) element-names)))
(define-and-export-builtin-elements (define-and-export-builtin-elements