You can make a tiddler and tag it $:/tags/Macro :

\define myaudio(file)
<audio controls="controls"><source src="./$file$.mp3" 
type="audio/mp3"/></audio>
\end


and then invoke the macro  as

<$macrocall $name="myaudio" file={{!!path}}/>


where "path" is the field holding the stem file name. You will have to 
change the full src path in your macro (I had to change it for testing).

I also changed <source> to have the closing /> generally required in HTML5

HTH
-- Mark

-- 
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/cc7fb1c0-efdc-4e04-9b1c-f5ef81c3c41a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to