Kless wrote:
> I'm building a dinamic list of links, and I want that been separated
> by '|' character.
>
> Note that 'foo' is a list
> ---
> {% for i in foo %}
> {{ i }}|
> {% endfor %}
> ---
> The problem is that I wantn't that last separator (because there isn't
>
You can add an if statement and check if
{{ foo|lenght }} and {{ forloop.counter }} matches to find out
when you have reached the end of the loop.
~Jakob
On 26 Mar., 14:46, Kless wrote:
> I'm building a dinamic list of links, and I want that been separated
> by '|' character.
>
> Note that 'f
I just to solve it :)
---
{% ifnotequal i foo|last %}|{% endifnotequal %}
---
On 26 mar, 13:46, Kless wrote:
> I'm building a dinamic list of links, and I want that been separated
> by '|' character.
>
> Note that 'foo' is a list
> ---
> {% for i in foo %}
> {
I'm building a dinamic list of links, and I want that been separated
by '|' character.
Note that 'foo' is a list
---
{% for i in foo %}
{{ i }}|
{% endfor %}
---
The problem is that I wantn't that last separator (because there isn't
another field).
I tried the nex
4 matches
Mail list logo