On Wednesday 26 May 2010 20:24:31 Daniel wrote:
> Hi, I was just referred here with a suggestion I posted on the
> django ticket tracker. I've been studying the way we do template
> tags, and had a suggestion for how to revise them to make them a
> bit easier. I was thinking that out of the tags, I like the
> variable syntax the best -- {{ variable.attribute }}. I realize
> that if we were to use the double curly brackets on all of the
> tags, they might conflict with the namespace, but it seems like
> having "block", "if", "elsif", "else", "for", and "extends" and
> their respective 'end'ings as keywords would not be burdensome.
> It's really unpleasant typing {%%} and left arrow twice, space,
> the item name, and space for every tag and for its closing tag.1) It sounds like your text editor is doing something less than ideal. The fix for that is to change the way your editor behaves, or get a new editor. We can't change the template syntax based on the mis- behaviour of one person's editor. 2) The namespace thing is a huge deal. It doesn't only affect builtins like 'if' etc. but every tag that is loaded from another library. As such, this represents a massive backwards incompatibility. So I can pretty confidently say that this isn't going to be accepted, sorry :-) Regards, Luke -- "Oh, look. I appear to be lying at the bottom of a very deep, dark hole. That seems a familiar concept. What does it remind me of? Ah, I remember. Life." (Marvin the paranoid android) Luke Plant || http://lukeplant.me.uk/ -- 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.
