(no title)
lassejansen | 1 month ago
You certainly must get used to the stack based approach. I tried to make it more approachable by making stack lookups type based (automatic search for value with matching type) and by using type-prefixed commands, e.g.
<request-send url="..."> // returns response
<response-get-text> // looks up response on the stack and returns string
<selection-set-text> // looks up string on the stack and writes it as text content to the current DOM element.
dhamidi|1 month ago
For example:
Appends a new dict to the list held in the variable responses, creating the variable if necessary.I can see that being an attribute:
lassejansen|1 month ago
Accessing a variables works like this at the moment:
Keeping the dollar syntax, setting the return value to a named variable could look like this: