Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.LANG.LISP
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)
Who's Online
Recent Visitors
Foxagg
Fri Mar 29 04:40:39 2024
from
The Void, Nowhere
via
SSH
Foxagg
Fri Mar 29 03:27:44 2024
from
The Void, Nowhere
via
SSH
Keyop
Fri Mar 29 03:27:35 2024
from
Huddersfield, West Yorkshire
via
SSH
Keyop
Fri Mar 29 02:55:21 2024
from
Huddersfield, West Yorkshire
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
286
Nodes:
16 (
2
/
14
)
Uptime:
83:32:48
Calls:
6,495
Calls today:
6
Files:
12,096
Messages:
5,276,833