Hello all,
I have a simple tiddler with a link to a local audio file. I'm trying to turn it into a macro so that if I want to change the format for an audio tiddler, I can edit the template tiddler once.
template/AudioPost:
\define AudioPost(file)
<audio controls src="$file$"/>
\end
My test tiddler:
<$set name="file" value="Audio/Evans/Evans, Tony - Revive Us Again - 08 - Are We Ready for Revival (Mt 3_1-2).mp3">
<<AudioPost>>
</$set>
<$set name="file" value="Audio/Evans/Evans%2C%20Tony%20-%20Revive%20Us%20Again%20-%2008%20-%20Are%20We%20Ready%20for%20Revival%20%28Mt%203_1-2%29.mp3">
<<AudioPost>>
</$set>
<audio controls src="Audio/Evans/Evans%2C%20Tony%20-%20Revive%20Us%20Again%20-%2008%20-%20Are%20We%20Ready%20for%20Revival%20%28Mt%203_1-2%29.mp3" />
'
Only my third version works....neither attempt to use the macro work.
Any thoughts one why the audio tag in the macro isn't recognizing the file path when it's identical to the path in the explicit src?