Mathias Jacob wrote:
Hi there,

i created a php class named Box which generates me a "styled div box" and all 
works fine.
Now i want to set the color of the box:

ie: <!-- start blue box -->
<div class="panel-blue"></div>
<!-- end blue box -->

so, whats the best way to replace the "blue" in the comment/class? I tried:

<!-- start <tal:block tal:content="structure color" /> box -->
<div class="panel-<tal:block tal:content="structure color" />"></div>
<!-- end <tal:block tal:content="structure color" /> box -->

but this didnt work ...


<div class="panel-${color}"></div>

Regards
Laurent
--
Laurent Bedubourg
[EMAIL PROTECTED]
http://www.motion-twin.com

_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to