Hi,

I've tried it and it's great, I think it will be useful, but it's not what 
I was thinking of... 

Let me try to explain what I had tougth about... What I would like to do is:

 1. create a new .leo file
 2. add a "template" node (eventually with sub nodes) with some ${schema} 
and ${table} macro place holders in its contents
 3. add a @file node to the .leo file
 4. add to this @file node a new one with definitions such as 
schema=SCHEMA_NAME and table=TABLE_NAME
 5. add as a sub node to this last one a clone from the "template" node;
 6. then, when I save everything, the @file would have "SCHEMA_NAME" and 
"TABLE_NAME" everywhere a "${schema}" or a "${table}" were in the original 
template node.

It would be important that, when I reopen the .leo file later, the macros 
in the @file node where shown as ${schema} and ${table}, and not as it's 
substituted text.

Now that I've described it, I can't see how it would be done... The 
${macro} place holders should be on the contents of the @file node, so 
after substitution, how could we recover it?

That's also why the code from Jacob is not what I need (but I'm already 
thinking of other uses for it :) ): it will create a text when the button 
is pressed, but the generated nodes will be just static text.


Thank you all. 

Leo is great!


João


On Friday, May 3, 2013 7:48:27 PM UTC-3, João Alexandre Toledo wrote:
>
> Hi, 
>
> Sorry for the delay... I'll try it this weekend and see how it works. 
>
> Thank you. 
>
> João

-- 
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?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to