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>

Laurent Bedubourg

PHPTAL mailing list

Reply via email to