Hello tb,

Thanks for that!

I haven't got my head around the macro mechanism and what's allowed with 
parameter substitution, but I notice that wrapping a macro around the 
macrocall line does what I want. It allows using the nice shorthand 
<<macroName>> macro calling syntax without having to explicitly pass the 
path and file arguments. But it leaves me feeling that I've jumped through 
a hoop, turned around and jumped back again. 


\define .dlink-ex(pretty, path, file)
<a href="$path$$file$" class="tc-tiddlylink-external" target="_blank">
$pretty$</a>
\end

\define pig(pretty)
<$macrocall $name=".dlink-ex" pretty=$pretty$ path={{!!path}} 
file={{!!file}} />
\end

<<pig "earwig">> works


\define .dlink-bad(pretty)
<a href="{{!!path}}{{!!file}}" class="tc-tiddlylink-external" target=
"_blank">$pretty$</a>
\end

<<.dlink-bad "earwig">> doesn't work


All the best, Bob

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a22a16e2-44c3-47db-9294-1ba4242aa529%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to