lassejansen
Joined 14 years ago
Karma
135
Submissions
37
Member since
Aug 29
Joined 14 years 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.With hyTags one can do a lot of things without server calls and without resorting to javascript (e.g. inserting and deleting new rows, showing a loading indicator, validating input, animations, ...).
https://news.ycombinator.com/item?id=46599403
Could you add that too to showlang?
This works pretty well for composable server side generated view components.
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: