Not to harp on about this, but I never understood not supporting multi-
line tags, in particular if it doesn't affect performance and really
is as straightforward as suggested by the OP.
Yes, they are only useful in a limited set of cases (albeit "rare" may
be overstating it), but so are multi-line statements in Python. But
when you do need them, this is not something that can simply be
provided by a third party extension. And it's not like we cannot trust
developers to not uglify templates by wrapping at every whitespace.
Most tags will continue to be single-line statements and will be as
readable as ever.
Admittedly, I like to wrap early, due to vertical splitting, and if
you have some indentation and a filter with an argument, I have to
start scrolling vertically rather quickly.
Looking at the {% comment %} tag, not only do I not see now it is more
readable than a multi-line {# #}, it also feels decidedly like a
workaround to me, which tells me that the thing being worked around
should be fixed.
Michael
--
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.