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-29 17:09:15 +03:00

1015 B

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::