mirror of
https://github.com/esiur/iui.git
synced 2025-05-06 14:52:58 +00:00
1.1 KiB
1.1 KiB
Declarative Rendering
Text nodes
Text nodes are enclosed with ${...}
${ navigator.userAgent }
Fields
starts with :
Attributes
starts with ::
Asynchronous
Promise Promises are automatically resolved.
${fetch("md/hello.md")}Await To use await in text nodes async attribute must be added to the parent element
${await (await fetch("md/hello.md")).text()}
In attributes, the attribute name must be preceded with async:
Attributes are similar they must start with async::
Skip rendering
Any element with skip attribute will not enter the IUI rendering process
${5 + 6}