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
Bob Worm
Tue Jun 11 21:37:59 2024
from
Wales, Uk
via
Telnet
Keyop
Tue Jun 11 20:48:11 2024
from
Huddersfield, West Yorkshire
via
SSH
Bob Worm
Tue Jun 11 19:19:03 2024
from
Wales, Uk
via
Telnet
Bob Worm
Tue Jun 11 07:19:27 2024
from
Wales, Uk
via
Raw
Cronus
Mon Jun 10 23:25:08 2024
from
Provo, Ut
via
SSH
Bob Worm
Mon Jun 10 22:16:20 2024
from
Wales, Uk
via
Raw
Bob Worm
Mon Jun 10 22:01:32 2024
from
Wales, Uk
via
Raw
Keyop
Mon Jun 10 11:17:06 2024
from
Huddersfield, West Yorkshire
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
307
Nodes:
16 (
3
/
13
)
Uptime:
34:48:59
Calls:
6,910
Calls today:
4
Files:
12,376
Messages:
5,428,417
Posted today:
2