\define _split-fadeIn-class()<$list filter="$(cls)$ +[splitbefore[ ]]" variable="fcls">mr-fadeIn-<<fcls>></$list>\end
\define colorful(param1)<$vars cls="$param1$"><span class=<<_split-fadeIn-class>> > This is test</span></$vars>\end
<<colorful "redcls bluecls">><span class=<<_split-fadeIn-class>> >
At first glance you are not closing <<__ with __>>
Thete may me more, but start there.
Tony
mr-fadeIn-<<fcls>>
But that probably won't work (I know, it looks like it works when you call _split-fadeIn-class, but that's an illusion) You probably either need to call another macro to concatenate mr-fadeIn- and <<fcls>> or you need to use wikify to put them together.
HTH-- Mark
mr-fadeIn-<<fcls>>
You're trying to concatenate "mr-fadeIn" with <<fcls>> . In my experience, this kind of concatenation never works. You always need something like mr-fadeIn-$fcls$ or mr-fadeIn-$(fcls)$ (via a separate macro) or you need to pass it to a wikify widget (<$wikify text="mr-fadeIn<<fcls>>" .../>
Good luck-- Mark
Hi Tony,
\define m1(p)<$set name=cls filter="$p$ +[splitbefore[ ]] +[addprefix[mr-fadeIn-]]"><span class=<<cls>> > This is a test </span></$set>\end<style>.mr-fadeIn-red{color:red;}.mr-fadeIn-yellow{background-color:yellow;}</style>
<<m1 "red yellow">>\define fin() $(cls)$ mr-contents\define m1(p)<$set name=cls filter="$p$ +[splitbefore[ ]] +[addprefix[mr-fadeIn-]]"><span class=<<fin>> > This is a test </span></$set>\end<style>.mr-fadeIn-red{color:red;}.mr-fadeIn-yellow{background-color:#dadada;}.mr-contents{border:1px solid blue;padding:5px;}</style>
<<m1 "red yellow">>\define colorful(param1)
<$vars cls="$param1$">
<$wikify text=<<_split-fade-In-class>> name=joinme>
<span class=<<joinme>> >
This is test
</span>
</$wikify>
</$vars>
\end