Thank you Eric,
The follow-up question is how I can parametrize the macro invocation text?
I'd like to be able to do the following, where the values "13456" and "My
title text" are supplied by variables:
<<newTiddler label:'make foo' title:'foo-*13456*: *My title text*'
text:'<<baz *13456*>>' >>
I don't think assigning the variables will be difficult, but I can't see
how to include the first variable, "13456", into the text parameter.
Can store.getTiddlerText(), accept an argument that gets substituted in the
included tiddler text?
Or, can a value be included in the text with the evaluated parameters
approach?
Thanks, again.
On Friday, October 25, 2013 7:17:24 PM UTC-4, Eric Shulman wrote:
>
> On Friday, October 25, 2013 3:53:34 PM UTC-7, Bruce Seely wrote:
>
>> I would like to use the newTiddler macro to create a tiddler that
>> contains a macro invocation, but the closing ">>" of the inserted macro
>> invocation is parsed as the end of the newTiddler macro. Is there any way
>> around this?
>>
>
> Yes. You can use evaluated parameters to quote the ">>" symbol, like this:
>
> <<newTiddler ... text:{{"<<someMacro ... >\>"}} ... >>
>
> or, you can move the desired text with the macro invocation into a
> separate tiddler (e.g,. "SomeTiddler"), and then retrieve it using:
>
> <<newTiddler ... text:{{store.getTiddlerText("SomeTiddler")}} ... >>
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
>
> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
> http://www.TiddlyTools.com/#Donations
>
> Professional TiddlyWiki Consulting Services:
> Analysis, Design, and Custom Solutions.
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.