On Thursday, October 12, 2017 at 10:41:37 AM UTC+2, Riz wrote:
>
> IMO this can already be done with macors, without any new invention. 
>> -m
>>
> Can you provide an example? So far I failed to replicate the intended 
> results. When I write <$button <<myparams>>> Hello </$button> it returns an 
> error.
>

 The call I had in mind looks like this: 

<<myButton myParamTiddlerTitle>>

A heavily simplified macro implementatoin would be similar to - eg:

title: myButtonMacro
tag: $:/tags/Macro

\define myButton(params label:"click me")
<$button to={{$params$##to}} 
class={{$params$##class}}>"""$label$"""</$button>
\end


title: params
type: application/json

{
"class": "myclass",
"to": "params"
 }


call: <<myButton params>>

have fun!
mario
 

-- 
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/452e7f81-a94d-4633-9f5d-2947d0941eb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to