Examples
Two sets come with the distribution. A tour of 42 small programs, each a written explanation of a single thing, in order. And a set of screens that run in a browser.
Every screen has a designer's HTML file beside it. There is no markup on the LPScript side. A screen clones the samples, fills them in, and names the message to send when something is pressed.
One page each:
- Orders — search, filter, sorting, a detail pane, saving. The status is a class per phase, not a string
- Quotes — the rows and the dialog are both the designer's samples, cloned
- Ten thousand rows — two dozen of them are drawn; the scroll position is the one fact the language hands over
- Page to page — a real navigation, and a value that can be read once
- Workers — the same sum, in the page and on another thread
- Supervision — crash one actor and watch what survives
- A date picker — a shared component that is not an actor
- A todo list — a parent's re-render does not descend into a child
- Games — redrawing every frame, in the DOM and on a canvas
Components
What belongs to no screen lives on its own and is imported by path. A confirmation box carries its own markup, because a dialog belongs to no page. A store splits sessionStorage into what is kept for the session and what is read once. A socket holds a WebSocket and takes on noticing that it dropped and connecting again.