I have this code in my macro file for flask.
{% macro display_name(name, parameter, parameter_value) %}
<a href="{{ url_for('users_stats',parameter = parameter_value) }}">{{name}}</a>
{% endmacro %}
I am not able to set the value of parameter to what I pass in the function. It is coming as a plain text, How to fix this?
This is how I am calling the function.
{{ display_name("Rahul", 'age', 15) }}