On Fri, Feb 5, 2016 at 3:20 PM, jkn <[email protected]> wrote:

>
> does the whole body of an @command script have to live within a single
> node?
>

​Not at all.  @button and @command nodes can use sections and @others.

Indeed, for complex scripts my pattern is:

<< imports >>
@others
x = Controller().run(p)​

Where child nodes and descendants define the << imports >> section and the
Controller class. This class can also be split into pieces using @others.

It's very important to understand that @button and @command nodes may be
composed exactly as Leo's own code is.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to