2 ms·
One of the stated goals of Django's template system is to be "safe" - to ensure that template developers can't cause too much damage. The Tornado model essentia
by simonw 17y ago
One of the stated goals of Django's template system is to be "safe" - to ensure that template developers can't cause too much damage. The Tornado model essentially allows arbitrary Python code to be evaluated, which isn't necessarily a bad thing but would break the contract Django has already established. I think the smarter {% if %} statement proposal is much closer to Django's philosophy.