Hey All. Has anyone discovered a good pattern for creating a
main block?
What I'd like to do is describe where the program begins, along with some system-level behaviors via inputs on that block. The important thing here is that it would be the only entry point, and there could only be one of them.
The way I have approached this so far is to override the workspaceToCode() generator method, and only generate code for that block. This is a little bit funky but it does work. The thing that's missing is whether there is a good way to limit a user to one block.
Maybe some scheme where the program comes with that block by default and can't delete it or create a new one?
Best,
Eric