There's now actually a convenient split+join filter operator combination 
that makes it simple to replace a string for another

\define video(url, w:"400px", h:"300px")
<iframe width="$w$" height="$h$" src={{{ $url$ +[split[watch?v=]join[embed
/]] }}} frameborder="0" allowfullscreen></iframe>
\end

<:-)

-- 
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/f943139b-6096-4226-8047-226013b3c053o%40googlegroups.com.

Reply via email to