Repository navigation
pleamar 0.2.23
pleamar 0.2.23 · language 0.2
include: a scene in pieces. A file that beginspart Name { … }holds a piece of a scene, andinclude "pages/wifi.plm"puts it where it is written: at the top level or inside a group, with the scene's names, as if it had been written there. Parts can include parts. Libraries are still where components go to be reused; a part is a page, a state or a rule of one scene, too tied to it to be a component. Errors say the part's file and line, saving a part reloads the scene, and including a library, a file that is not a part, or a part that ends up including itself says so. See §5 of the language reference.- The logic's modules are watched. A module loaded with
require("logic/x")now reloads the scene's logic when it is saved, like the main file. A module that returns a function can be handed what it shares with the main file:require("logic/x")(shared).
Marea is now written this way (marea-plm, today): she needs this pleamar. Update with pleamar-update (Arch) or nix flake update (NixOS), together with Marea and pleamar-wm, and log out and back in.