summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNeal Todd <neal.todd@torchbox.com>2015-11-11 15:21:43 +0000
committerTim Graham <timograham@gmail.com>2015-11-11 11:50:48 -0500
commit15cf906643c83580377062951c917930c4d82ec0 (patch)
treec98ee70558240e94ea2c7a4af43eaa38f75c3b69 /docs
parentdc3a6118df09d80652c9535fcdacdea158c6db8d (diff)
[1.9.x] Fixed #25732 -- Updated template system design philosophy.
Removed the bit about not allowing assignment to variables because simple_tag now allows this. Backport of 74365585e28174834184e659b788c917303cd98a from master
Diffstat (limited to 'docs')
-rw-r--r--docs/misc/design-philosophies.txt8
1 files 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) <template-language-intro>` 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