{% macro imatge(img) %}
<img src="{{url_for('static',filename='img/{{img}}')}}"><br>{{img}}
{% endmacro %}
pasando el parametro 'robots.jpg' al siguiente template.
{%from "_macro.html" import imatge%}
{{imatge('robots.jpg')}}
me renderiza esta pagina
<img src="/static/img/%7B%7Bimg%7D%7D"><br>robots.jpg
cuando deberia renderizar
<img src="/static/img/robots.jpg"><br>robots.jpg
¿que estoy escribiendo mal en la macro?
muchas gracias
Xavi.