Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Unix weanies are as bad at this as anyone. -- Larry Wall in <199702111730.JAA28598@wall.org>


devel / comp.lang.lisp / ifequal with Djula

SubjectAuthor
o ifequal with DjulaStephane Tougard

1
ifequal with Djula

<eqv82i-3s3.ln1@clipper.unices.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=16668&group=comp.lang.lisp#16668

  copy link   Newsgroups: comp.lang.lisp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp1-2.free.fr!not-for-mail
Newsgroups: comp.lang.lisp
From: stephane@unices.org (Stephane Tougard)
Subject: ifequal with Djula
Reply-To: stephane@unices.org
User-Agent: slrn/1.0.3 (Linux)
Date: Mon, 27 Sep 2021 16:07:42 +0200
Message-ID: <eqv82i-3s3.ln1@clipper.unices.org>
Lines: 28
Organization: Guest of ProXad - France
NNTP-Posting-Date: 27 Sep 2021 16:08:01 CEST
NNTP-Posting-Host: 78.247.52.194
X-Trace: 1632751681 news-1.free.fr 5975 78.247.52.194:34752
X-Complaints-To: abuse@proxad.net
 by: Stephane Tougard - Mon, 27 Sep 2021 14:07 UTC

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 %}
<tr>
<td>
{{ line | first >>
</td>
<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


devel / comp.lang.lisp / ifequal with Djula

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor