So I want to put an svg file into my page(not as an image, as an xml element) - need it like this so I could dynamically change elements within the page.
and I made a simple code that I thought it'll do:
@app.route('/map_test/')
def test():
svg = render_template('file.svg')
response = make_response(svg)
response.content_type = 'image/svg+xml'
return render_template('test.html', svg=response)
and test.html:
{% block content %}
<section>
{{ svg }}
</section>
{% endblock %}
....which just returned <Response 126181 bytes [200 OK]>
instead of svg element...
so... what do I need to do in order to get this to work?