Hello I am learning to use python Flask module and was wondering if anybody here can help me solve an issue:
I am attempting to pass a dictionary via the render_template() function, and on the template I am using it to instantiate a Javascript variable with a value, i.e.:
`{% block scripts %}
<script> var test = {{dict}} </script>
{% endblock %}`
I am attempting to pass a dictionary via the render_template() function, and on the template I am using it to instantiate a Javascript variable with a value, i.e.:
`{% block scripts %}
<script> var test = {{dict}} </script>
{% endblock %}`