Add 1. Basic Hylia Syntax
parent
a117ca6f70
commit
0877c410fe
1 changed files with 15 additions and 0 deletions
15
1.-Basic-Hylia-Syntax.md
Normal file
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!
|
Loading…
Reference in a new issue