• ifequal with Djula

    From Stephane Tougard@21:1/5 to All on Mon Sep 27 16:07:42 2021
    Hi all,

    I'm working with Djula (template) on SBCL.

    I display a list of list in a table in HTML :

    {% for line in list %}


    {{ line | first >>
    </td>

    {{ line | slices:1 | first }}
    </td>
    </tr>
    {% endfor %}

    Now, let's say that I need to display a field depending on the value
    of another field, in theory, it should look like this :

    {% ifequal line | slices:2|first 1 %}

    The problem is that filters don't work this way and it looks like we
    can not use them with tags.

    Any idea ?

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)