Add 1. Basic Hylia Syntax

conzer12 2024-12-06 06:23:19 +00:00
parent a117ca6f70
commit 0877c410fe

15
1.-Basic-Hylia-Syntax.md Normal file

@ -0,0 +1,15 @@
Hylia is very similar to HTML, but has a few different concepts.
Hylia files end with ".hy". The following is a basic Hylia syntax.
```
<hylia>
<element name="head">
<title>Hello Hylia!</title
</element>
<element name="body">
<h1>Hello Hylia!</h1>
</element>
</hylia
```
In Hylia, your main items are treated as Elements. If something is not inside an element, it will be ignored.
To compile this code, save it to a file and run `hylia yourfile.hy index.html`
And test it in a browser!