Grantlee frustrations
Lubomir I. Ivanov
neolit123 at gmail.com
Mon Jan 23 13:45:35 PST 2017
i've googled some of the Django syntax to understand a bit how it works.
On 23 January 2017 at 18:20, Martin Long <martin at longhome.co.uk> 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
--
More information about the subsurface
mailing list