Hi Jeremy,
That's right!
By the way as you advised in your first post and wrapping the my macro into
another macro I could get the non-wikified e.g. the raw text into
a variable. I think the magic is your clever solution in the below script
"<pre><$text text=<<dumpvariables>>/></pre>".
\define mac()
<pre><$text text=<<regexpsub sourceText:"""$(source)$"""
searchValue:$(searchValue)$ replaceValue:$(replaceValue)$
caseSensitive:$(caseSensitive)$>> /></pre>
\end
\define another-macro(.......)
<$wikify name="result" text=<<mac>> >
<$text text=<<result>>/>
...
\end
I use this in my new search-n-replace code (I call it SNR2) to call a JS
macro and
do a search-n-replace.
I will upload the solution shortly.
Many thanks for your time and your clever solution.
Cheers
Mohammad
On Saturday, March 2, 2019 at 11:53:32 PM UTC+3:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
>
> I think I did not correctly asked the second questions: In the below
> example
>
> <$wikify name="output" text="""<pre><$text text=<<dumpvariables>>/></pre>
> """>
> <$text text={{{ [<output>split[|]join[||]] }}} />
> </$wikify>
>
> How can I call macro using $macrocall? One use-case is where the input
> parameters are variable themselves.
> Still I need the result without wikifivation?
>
>
> I’m afraid that goes back to something we’ve discussed before: there isn’t
> a way to get the results of a macrocall widget into a variable without
> wikification:
>
> https://groups.google.com/d/msg/tiddlywiki/r79pRRrfIb8/H13C-UlKBQAJ
>
> Best wishes
>
> Jeremy.
>
>
>
> --Mohammad
>
>
>
>
> On Saturday, March 2, 2019 at 8:50:45 PM UTC+3:30, Jeremy Ruston wrote:
>>
>> Hi Mohammad
>>
>> On 2 Mar 2019, at 16:39, Mohammad <[email protected]> wrote:
>>
>>
>> Just one further question, if I have to call my macro using $macrocall
>> widget, how can I do this?
>> Example when I have to pass other variables as input parameter to my
>> macro!
>>
>>
>> Try something like this:
>>
>> <$wikify name="output" text="""<$macrocall $name="datauri"
>> title="$:/SiteTitle"/>""">
>> <$text text={{{ [<output>split[TiddlyWiki]join[WikiTiddly]] }}} />
>> </$wikify>
>>
>> Best wishes
>>
>> Jeremy
>>
>
> --
> 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] <javascript:>.
> To post to this group, send email to [email protected]
> <javascript:>.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/91d06951-b76f-4b86-991d-cbffaced4028%40googlegroups.com
>
> <https://groups.google.com/d/msgid/tiddlywiki/91d06951-b76f-4b86-991d-cbffaced4028%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
--
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/98c544c5-9ade-474d-b674-b553665225d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.