Skip to content

Instantly share code, notes, and snippets.

@ivanjeremic
Last active October 14, 2024 06:23
Show Gist options
  • Save ivanjeremic/fb5cc3d5bd7660db9afd5448c85a0e9e to your computer and use it in GitHub Desktop.
Save ivanjeremic/fb5cc3d5bd7660db9afd5448c85a0e9e to your computer and use it in GitHub Desktop.
settings is fn {
foo, bar, ex from args;
count is var num 0;
// if on same line no curly braces needed just like in JavaScript.
Title is str <h1>Hello World!</h1>;
person is struct {
name is str "Ivan";
age is num 33;
children is arr [strunct { name = str "Marina"; age = num 7}];
}
// destructuring
name, age from person
// multiline string
return str {
<Title />
<button>{count}</button>
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment