html string in Smarty tags

From: Date: Thu, 26 Dec 2002 15:35:36 +0000
Subject: html string in Smarty tags
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6944@lists.php.net to get a copy of this message
Hi, I'd like to know if it's possible to write html stuff in Smarty tags... Here is what I have: {if $circuit.traffic_type} <td class="traffic-{$circuit.traffic_type}">{$circuit.traffic_type}</td> {else} <td class="clean">&nbsp;</td> {/if} And I would like to write something much simpler as: <td class="{"traffic-"$circuit.traffic_type|default:"clean"}">{$circuit.traffic_type|default:"clean"}</td> But I cannot write the traffic- inside the smarty tag... any idea on how to do that? Thanks.

« previous php.smarty.general (#6944) next »