Hi,

I'm new to PHPTal and was wondering if the use of the ${} notation was 
generally discouraged. It seems you can use this construct instead of many of 
the PHPTal attributes. For example,

<p class="${myClass}">${myContent}</p>

is the same as

<p tal:attributes="class myClass" tal:content="myContent"></p>

Intuitively I would say the second method is the preferred way of doing this in 
PHPTal, even though it is more verbose. Am I correct in thinking this, and if 
so, why? Are there any advantages to using one method over the other?

Regards,

Bas


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

Reply via email to