I definitely understand why business logic should be kept out of the
template; I don't see why adding AND/OR support is any worse than
having if/if not/ifequal/ifnotequal/for.

During the Snakes & Rubies talk it was mentioned that many times there
has to be logic in the template, but just because it is logic does not
necessarily make it business logic.

The more dynamic a site becomes the more it helps to have better logic
available to you in the template.  I have seen a few posts on this
board where people get tripped up trying to create navigation where the
page the user is on is highlighted in the navigation and so is the
section, or parent page that the current page belongs to.  Yes, this
user could create there own custom tag but that is a job for the python
programmer and not the template designer.  Plus a custom tag then
brings the possibility of putting html into the python code where it is
out of reach of the designer.

Reply via email to