And using codaCodas examples prior;

<$wikify name=style-value text="""color: {{!!color}}""">
 style=<<style-value>> 
</$wikify>  

<span style={{{ [[color:]] [{!!c}] +[join[]] }}}>Check this in 
devtools</span>  

<span style={{{ color: [{!!color}] ||&}}}>Check this in devtools</span>  

Again great for attribute values and parameters, but still need another 
step to get the result into a filter.

Tony

Tones
On Thursday, 3 December 2020 at 11:46:41 UTC+11 TonyM wrote:

> Saq et al,
>
> Thinking a little further on this issue of "inline concatenation of 
> various tiddlywiki values", I believe I have just found a quite elegant 
> solution.
> Given your complaint about Wikification performance this returns the 
> "evaluated text"
>
> Create a tiddler called "&" for concatenate containing
> {{{ [<currentTiddler>split[ ]] +[join[]] }}}
>
> This spits the input by spaces/run and then joins them.
>
> Now to concatenate use;
> {{{ filter || & }} 
> {{{ filter-run filter-run ||&}}
>
> Where filter can access any value available to a filter, use space 
> separation of runs
> {{{ $:/string/ [<var>] / [{!!fieldname}] [[/suffix]] ||&}}} 
> {{{ $:/string/ [<var>] / [{!!fieldname}] [[/suffix/]] [all[current]] ||&}}}
> {{{ $:/system/ [<currentTiddler>] ||&}}
>
> Now I am already taking this code pattern further, 
>
>    - This allows the concatenation of values passed as a parameter/set of 
>    filters
>    - but for efficient use I know need to determine the best way to get a 
>    result into a filter. I expect we must use set or vars.
>    
> Regards
> Tony
> On Thursday, 3 December 2020 at 04:28:23 UTC+11 saq.i...@gmail.com wrote:
>
>> @codacoder There are issues on github discussing both approaches, using 
>> backticks to wikify OR using them to do substitution. I strongly prefer the 
>> latter due to the performance penalty associated with wikify.
>>
>> See
>>
>>    - https://github.com/Jermolene/TiddlyWiki5/issues/5121
>>    - https://github.com/Jermolene/TiddlyWiki5/issues/5110
>>
>> But let's not derail Tony's thread by going too far off topic. If we want 
>> to discuss this further we should start a new thread.
>>
>> Cheers,
>> Saq
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/a01afb1b-dc15-4cea-9863-6b75c92a2706n%40googlegroups.com.

Reply via email to