I know you can assign attributes to a tag by doing this: <div
tal:attributes="class string:myclass; id string:myid;">text</div>

What I want to do is pass a variable to the template that contains all the
attributes in one string. Example:

$my_attributes = "class string:myclass; id string:myid;";

<div tal:attributes="my_attributes">text</div>

This doesn't work. Anyone know why, or have a workaround?

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

Reply via email to