From 74365585e28174834184e659b788c917303cd98a Mon Sep 17 00:00:00 2001 From: Neal Todd Date: Wed, 11 Nov 2015 15:21:43 +0000 Subject: [PATCH] Fixed #25732 -- Updated template system design philosophy. Removed the bit about not allowing assignment to variables because simple_tag now allows this. --- docs/misc/design-philosophies.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/misc/design-philosophies.txt b/docs/misc/design-philosophies.txt index 39807ed3d0..5a756be450 100644 --- a/docs/misc/design-philosophies.txt +++ b/docs/misc/design-philosophies.txt @@ -249,14 +249,10 @@ displayed. Don't invent a programming language ----------------------------------- -The template system intentionally doesn't allow the following: - -* Assignment to variables -* Advanced logic - The goal is not to invent a programming language. The goal is to offer just enough programming-esque functionality, such as branching and looping, that is -essential for making presentation-related decisions. +essential for making presentation-related decisions. The :ref:`Django Template +Language (DTL) ` aims to avoid advanced logic. The Django template system recognizes that templates are most often written by *designers*, not *programmers*, and therefore should not assume Python