![]() |
GlyEngine 0.1.2
Create games and apps with lua
|
Standard API. More...
Topics | |
Draw | |
Key | |
Array | |
Hash | |
I18n | |
Log | |
App | |
Text | |
Ui | |
Http | |
Media | |
Storage | |
Bus | |
Mem | |
Node | |
Color | |
Math | |
Functions | |
local function | h (element, attribute,...) |
JSX element factory. | |
local function | getenv (varname) |
local function getenv | ( | varname | ) |
local function h | ( | element | , |
attribute | , | ||
... ) |
Core function that interprets JSX and integrate with std.ui
element | (string|function|table) The element tag name, a component function, or a raw node. |
attribute | (table) Element attributes (e.g., class, margin, gap). |
... | Child elements or nested content. |
error | when element is invalid type |