Ok, I actually solved it, but I hope someone can explain WHY.

I added parentheses:

\define AudioPost(file)
<audio controls src="$(file)$"/>
\end


On Monday, March 16, 2020 at 3:14:07 PM UTC-4, Chris Fischer wrote:
>
> Hello all,
>
> I've been experimenting with Audio and Video macros such as those 
> demonstrated here: http://av-macros.tiddlyspot.com/ 
> <http://av-macros.tiddlyspot.com/#Welcome>
>
> 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.
>
> [image: Annotation 2020-03-16 151218.jpg]
>
> 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?
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/46c383d5-869f-4c47-b2fe-0226be546796%40googlegroups.com.

Reply via email to