On Mar 27, 2012 3: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 %}
>
>
> three lines instead of one lines, just for passing context variables,
context variables for url is not widespread
>

Well yes, it's not widespread: It's currently impossible. And it's only
three lines if you want to explicitly create a context variable inside a
template (which you will note is done with a quoted string constant). What
your example demonstrates is how to create a constant variable that is used
immediately... why would you ever do that?

Alex Ogier

-- 
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.

Reply via email to