{% import 'input_macros.html' as input_macros %} {% for parameter in parameters %} {{ input_macros.input(parameter, weather_dict) }} {% endfor %}