2
0
mirror of https://github.com/esiur/iui.git synced 2025-05-06 06:42:58 +00:00
iui/docs/md/getting-started/declarative.md
2021-10-30 12:31:25 +03:00

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}