Remove get-builtin-element

This commit is contained in:
Akira Tempaku 2024-04-18 13:32:37 +09:00
parent 9b4e206623
commit fb7a549e83
2 changed files with 4 additions and 14 deletions

View file

@ -46,18 +46,14 @@ It's
```
- Improved:
- Element functions are wrapped in macros for natural indentation. To manipulate them as function objects, prefix '%' to the element name, or use `get-builtin-element` function.
- Element functions are wrapped in macros for natural indentation. To manipulate them directly, prefix '%' to the element name.
- Bugfix. https://github.com/ailisp/flute/issues/5, https://github.com/ailisp/flute/issues/7
```lisp
(define-element dynamic-1 (as)
(define-element tag (as)
(funcall as props children))
(define-element dynamic-2 (as)
(funcall (get-builtin-element as) props children))
(dynamic-1 :as #'%span :class "bold" "child")
(dynamic-2 :as 'span :class "bold" "child")
(tag :as #'%span :class "bold" "child")
; <span class="bold">child</span>
```