Hi Edward, 

I'm very new to Leo and I think I'm trying to do something similar to what 
was asked in this post. 
I'm trying to use Leo to create batch files.  The release number has to 
repeat throughout the file.  How can I store it in a header node and 
reference it from a sub node?

Many thanks. 

Kind regards, 
Richard Twyning 


On Monday, May 4, 2015 at 12:27:25 PM UTC+1, Edward K. Ream wrote:
>
> On Mon, May 4, 2015 at 6:14 AM, john lunzer <[email protected] 
> <javascript:>> wrote:
>
> Could Leo have something like @int/@bool/@string/etc simple settings types 
>> but applicable to any node in an outline?
>>
>
> ​Anything is possible, but I won't do this. Settings are complex and 
> capable enough as it is.
>
> Put common data in settings in myLeoSettings.leo or in the local .leo file 
> and get them as usual.
>
> In particular, @data nodes can hold any data you want. c.config.getData 
> has the following signature:
>
>     def getData (self,setting,strip_comments=True,strip_data=True):
>
> You may want to set the two keyword args to False.
>
> Finally, your scripts communicate through g.app.permanentScriptDict​. This 
> dict is not cleared after a script executes. Keys and values are anything 
> you want.  This is one alternative to using c.config.set/get.
>
> HTH.
>
> 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