You can't nest a variable evaluation (via {{}}) inside a tag
execution {%%}. But you can put them side by side to achieve
the effect you want:
'{% static "mysite/scorr" %}'/{{a}}'
--Fred
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
Fred Stluka -- mailto:fred@bristle.com -- http://bristle.com/~fred/
Bristle Software, Inc -- http://bristle.com -- Glad to be of service!
Open Source: Without walls and fences, we need no Windows or Gates.
On 3/2/16 8:04 AM, Andreas Schosser wrote:
Hi Luca,<img src="{% static "mysite/scorr/{{a}}" %}" width="100" height="100" </img>Try {% static "mysite/scorr/"|add:a %} Andreas
No comments:
Post a Comment