{% extends 'base.html' %} {% set widget_count = 0 %} {% macro render_widget(qanda) %} {% set widget_count = widget_count + 1 %} {% set question = qanda['question'] %} {% set answers = qanda['answers'] %}
{{ question["title"] }}

{{ question["message"] }}

Image here
  • submitted on {{ question["submission_time"] }}
  • viewed {{ question["view_number"] }}
  • vote_number
{% set answer_count = 0 %} {% for answer in answers %}

{{ answer['message'] }}

Image here
  • {{answer['vote_number']}}
  • {{answer['submission_time']}}
{% set answer_count = answer_count + 1 %} {% endfor %}
{% endmacro %} {% block main %}

Welcome to B.R.A.D Q&A!

The place you get the answer, that you need.

{% for qanda in qanda_data %} {{ render_widget(qanda) }} {% endfor %}
{% endblock %}