Add some improved components docs.

master
Sir Robert Burbridge 2023-03-31 10:36:36 -04:00
parent c8b8f003c1
commit 5e98537896
1 changed files with 15 additions and 0 deletions

View File

@ -42,3 +42,18 @@ borrowed heavily from Svelte for this.
```
If the component defines something like this:
```
<script>
import Item from 'https://.../Item.component.xml';
</script>
<Item data={item}/>
```
Then the "import" node of the AST would be replaced by a function that
provides the requested content (from Item.component.xml) like a macro. When
the `<Item/>` node is hit, it will be interpreted according to the imported
component macro.