the docs say about "tal:condition" that the block will only be shown
if the expression evaluates to true...

but I don't find the info if I couldn't easily compare a var to a

should I always revert to php: stringname == 'value' ?

Something like

<div class="errormsg" tal:condition="errmsg:'unknonwn_user'"> Your
username is unknown</div>

PHPTAL mailing list

Reply via email to