So, having 2 objections to clones, let me give my thoughts:

   - What I'm working on is a microservices design spec that has multiple 
   API's with apps that interact with those API's
   - Let's say the API has a function 'PUT /updatePosition' that takes 
   these arguments
      - ID
      - Latitude
      - Longitude
   - In the smartphone app spec, I want to add the documentation which says:
      - When you've changed X miles in position, do a PUT to 
      /updatePosition with the arguments:
         - clone ID
         - clone Latitude
         - clone Longitude
So, from a documentation point of view, I'm maintaining the definition for 
those parameters once, and referencing them consistently across specs

Is this still discouraged? 

On Tuesday, March 13, 2018 at 12:29:38 PM UTC-4, Edward K. Ream wrote:
> On Tue, Mar 13, 2018 at 8:41 AM, drmikecrowe < 
> <javascript:>> wrote:
> I have a lot of configuration that must be defined as a Javascript object 
>> (or JSON).  I'm trying to decide on the best way to enter it into Leo.
> ​For such questions I think first of creating a Leo script.​
> ​Whether that's reasonable in your case depends completely on your desires.
> Is there a good way of managing this in Leo?
> ​The answer to all such questions must surely be "yes".  However, that 
> answer, while being absolutely true (imo), doesn't help much ;-)
> ​
>> I'm wondering if there's a way to build this JSON object via Leo, and 
>> somehow use clones to keep the data synchronized across different services 
>> within the project
> ​I agree with Terry that clones aren't likely to be the best way.
> You could try making a suite of @button nodes that would use "raw" 
> json/yaml/whatever in some particular (known) node as a mini database​. 
> Python's json library module <> 
> would help you access the data in that node however you like.
> But these are just first thoughts. You can do amazing things with Leo if 
> you are comfortable with python scripting.
> 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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to