{% set page_name = "homepage" %} {% extends "layout/basic.html" %} {% import "components/contest.html" as contest with context %} {% import "components/problem.html" as problem with context %} {% import "components/user.html" as user with context %} {% block content %}
{% for w in widgets %}
{% if templateExists("partials/homepage/" + w.name + ".html") %} {% set payload = w.payload %} {% include "partials/homepage/" + w.name + ".html" %} {% else %} {% set payload = _("Template {0} not found.").format(w.name) %} {% include "partials/homepage/error.html" %} {% endif %}
{% endfor %}
{% endblock %}