I will look at it at the future. I fixed this problem by making
another approach to it. However i think that it would be neat that
templates supported boolean statements.
On Oct 8, 3:39 am, hasan_aljudy <[EMAIL PROTECTED]> wrote:
> You can't really do it that easily with the default django templa
You can't really do it that easily with the default django template
language,
bu check out Jinnja2,
http://jinja.pocoo.org/2/documentation/
it's an alternative template language/system that can be plugged into
django.
it offers what you need and more useful features that save you time
and make yo
On Tue, 2008-10-07 at 13:43 -0700, Kasper Grubbe wrote:
> Hi again.
>
> In my application i need to know if a number in a list is bigger than
> 1000 or got 4 letters in it. I have to do this in my template.
>
> This is my code in the template:
>
> {% for menuitem in availList %}
> {% if
Hi again.
In my application i need to know if a number in a list is bigger than
1000 or got 4 letters in it. I have to do this in my template.
This is my code in the template:
{% for menuitem in availList %}
{% if menuitem|length > 3 %}
{{ menuitem }}
{% else %}
4 matches
Mail list logo