Here is the code from my .ss template:
<a href="$QuotationLink.ATT" title="$QuotationAuthor.ATT">$QuotationAuthor.ATT</a>
if $QuotationAuthor contains the text red then I want this:
<a href="$QuotationLink.ATT" title="$QuotationAuthor.ATT" class="red">$QuotationAuthor.ATT</a>
else I want this:
<a href="$QuotationLink.ATT" title="$QuotationAuthor.ATT" class="green">$QuotationAuthor.ATT</a>