Commenting out in Chamaleon templates
If you want to prevent Chameleon from rendering some portions of an HTML template you might be tempted to do something like this:
</br> <!-- <div>${context.name}</div> --> </br>
However Chameleon will still evaluate what’s inside the ${…} block even if it’s within an HTML comment. Chameleon must do this because you might want to insert conditional comments.
This dummy tal:condition block will do the job:
</br> <span tal:condition="None"> <div>${context.name}</div> </span> </br>
Chameleon ignore anything inside the condition block.