i've googled some of the Django syntax to understand a bit how it works.
On 23 January 2017 at 18:20, Martin Long <[email protected]> wrote:
>
> it seems impossible to assign anything to a variable using "with"
>
the above not working might be due to a bug in Granlee if it claims to
support "with"...or it could be a missing feature from Django.
apparently, with "with" you can do a:
{% with '02463175' as list %}
{% for idx in list.split %}
<div> dive N: {{ dives[idx].number }} </div>
{% endfor %}
{% endwith %}
ref: https://gist.github.com/seanislegend/10840829
Tomaz, knows the Grantlee author, so maybe he can explain what is
supported and not supported in Grantlee.
lubomir
--
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface