Add description of hsx macro

This commit is contained in:
paku 2024-06-06 21:20:38 +09:00
parent 6fccde7dc8
commit 87bc1e12f2

View file

@ -10,6 +10,8 @@ This project is a fork of [flute](https://github.com/ailisp/flute/), originally
With the `hsx` macro, you can construct HTML using S-expressions. With the `hsx` macro, you can construct HTML using S-expressions.
The role of the `hsx` macro is to detect symbols of built-in elements and import the corresponding functions on demand. It is not needed when invoking user components defined with the `defcomp` macro.
The property list (inline form is also available) following the element name is interpreted as attributes, while the remaining elements are interpreted as child elements. The property list (inline form is also available) following the element name is interpreted as attributes, while the remaining elements are interpreted as child elements.
When a property is given a boolean value: When a property is given a boolean value: