british.assassin wrote:
> You could do this:
>
>
> {% for cell in row %}
>
> {% if forloop.first and row.url %}{{cell}}
> {% else %}
> {{cell}}
> {% endif %}
Then you're violating DRY on {{cell}}, which of course may be a lot mroe
complicated than {{cell}}...
cheers,
Chris
--
Simplistix -
You could do this:
{% for cell in row %}
{% if forloop.first and row.url %}{{cell}}
{% else %}
{{cell}}
{% endif %}
{% endfor %}
On Oct 9, 10:06 am, Chris Withers wrote:
> Hi All,
>
> I have a piece of template that looks like this:
>
> >
> > {% for cell in row %}
> >
> > {% if
Hi All,
I have a piece of template that looks like this:
>
>{% for cell in row %}
>
>{% if forloop.first and row.url %}{% endif %}
>{{cell}}
>{% if forloop.first and row.url %}{% endif %}
>
>{% endfor %}
>
How can I structure this such that I don't have to repea
3 matches
Mail list logo