4 ms·
Indeed. It just seemed a little restrictive not to be able to use some basic Python operators from within a template. Why invent a separate awkward syntax when
by stevenwei 17y ago
Indeed. It just seemed a little restrictive not to be able to use some basic Python operators from within a template. Why invent a separate awkward syntax when Python itself is perfectly suitable?
- ygd_coder 17y agoThe idea was so that a web designer who didn't know any programming could easily edit it.
- stevenwei 17y agoInteresting. I wonder how well that has worked out in practice. Seems to me like any designer smart enough to get comfortable with Django's templating language probably wouldn't have any trouble getting comfortable with Python itself! It's not like you'd ever do anything particularly complicated (programming wise) from within your templates anyway.