On Wed, 6 Nov 2013 23:46:38 -0800 (PST)
[email protected] wrote:

> Thanks a lot, Terry, for the files you attached. I will try to understand 
> the Leo code and learn from it.
> I have noticed that the output-generating Python code is included within 
> the same file that contains the data.
> I am new to Leo so I am just asking. Should there not be a separation of 
> data and Python code, in two different files?
> For some reason, seeing the Python code mixed with the data makes me a bit 
> uncomfortable, but that's just me.

Well, they're in separate nodes, so in a sense they're separated, if
you see Leo's nodes as a sort of sub-filesystem level of separation.
When the code's so short, it's easy for it to live in the outline it
applies to.  But it can certainly be separated, most easily by placing
the @button node under a @buttons node under the @settings node in your
myLeoSettings.leo file.

Cheers -Terry

-- 
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to