Skip to content

Instantly share code, notes, and snippets.

@aklaswad
Created March 22, 2011 07:32
Show Gist options
  • Save aklaswad/880892 to your computer and use it in GitHub Desktop.
Save aklaswad/880892 to your computer and use it in GitHub Desktop.
<mt:setvar name="foo" value="a,b,c,d,e">
<mt:setvar name="bar" value="","">
<mt:if test="@$bar = split(',', $foo)"></mt:if>
<mt:loop name="bar" glue=" + "><mt:var name="__value__"></mt:loop>​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment