On Tue, Mar 27, 2012 at 4:26 PM, gs412 <gs...@126.com> wrote: > Less symbol is the tide, the future. for example: > coffeescript、sass、haml、slim and python, there are all less symbol, this > feature make developer fell well > > passing context variables for tag "url" is not a good idea, it make the > work from easy to hard > >> {% with url_name="client-detail-view" %} >> {% url url_name client.id %} >> {% endwith %} > > > This dont work?
{% url "client-detail-view" client.id %} > three lines instead of one lines, just for passing context variables, > context variables for url is not widespread > > > 在 2012年3月27日星期二UTC+8下午8时38分04秒,Łukasz Rekucki写道: > >> On 27 March 2012 10:22, gs412 <> wrote: >> > In Django1.5 >> > >> >> {% url app_views.client %} >> > >> > will change to >> >> >> >> {% "url app_views.client" %} >> > >> > >> > I think it is a stupid idea >> >> Did you read the rationale for this change? How do you want to enable >> passing context variables as view names? Did you notice that almost >> everywhere in the template language literal strings are quoted? >> Technical arguments usualy work better then calling things "stupid". >> >> >> -- >> Łukasz Rekucki >> >> -- > You received this message because you are subscribed to the Google Groups > "Django developers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/django-developers/-/kADHFAbppUwJ. > > To post to this group, send email to django-developers@googlegroups.com. > To unsubscribe from this group, send email to > django-developers+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-developers?hl=en. > -- juanpex -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.