On Fri, Apr 25, 2008 at 10:15 AM, Wolfram Kriesing
<[EMAIL PROTECTED]> wrote:
>
> I guess it might had been discussed, just didnt find anything.
> This extended syntax would really make some writing shorter
>
> user has {{ num_files or "no" }} files
>
> now, you have to write
>
> user has {% if num_files %} {{ num_files }} {% else %} no {%
> endif %} files
It already exists:
{{ num_files|default:"no" }}
--
Leo Soto M.
http://blog.leosoto.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---