Thanks Edward
On Monday, February 15, 2016 at 3:55:26 PM UTC, Edward K. Ream wrote:
>
> On Fri, Feb 5, 2016 at 3:20 PM, jkn <[email protected] <javascript:>>
> 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
>
For some reason your posting above made a lot more sense after looking at
leo/scripts/scripts.leo
There are aspects I don't get grok about this but I have enough to play
with...
Thanks
Jon N
--
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.