use core.string
use core.encoding.json
use core.os
-use core.slice
use core {
tprintf
}
os.get_contents("www/packages/core_packages.json")
|> json.decode_into(&core_packages);
- slice.sort(core_packages, (a, b) => string.compare(a.name, b.name));
+ Slice.sort(core_packages, (a, b) => string.compare(a.name, b.name));
os.get_contents("www/packages/third_party_packages.json")
|> json.decode_into(&third_party_packages);
- slice.sort(third_party_packages, (a, b) => string.compare(a.name, b.name));
+ Slice.sort(third_party_packages, (a, b) => string.compare(a.name, b.name));
}
load_examples :: () -> ? [] Example {
"name": "Beta Release 0.1.10",
"path": "release-0.1.10",
"date": "31st March 2024",
- "description": "TODO"
+ "description": "This release brings standard library uniformity, minor syntax changes, and JavaScript interop! You can now easily interface with the DOM and other JS APIs from directly within Onyx."
},
{
"name": "Beta Release 0.1.9",
button := document->call("createElement", "button");
button->set("innerHTML", "Click me!");
- button->call("addEventListener", js.func((this, args) => {
+ button->call("addEventListener", "click", js.func((this, args) => {
js.Global->call("alert", "Hello from Onyx!");
return js.Undefined;