templates/web/homepage/index.html.twig line 1

Open in your IDE?
  1. {% extends "web/base.html.twig" %}
    
    {% block description %}
        {{ category.description }}
    {% endblock %}
    
    {% block body %}
        {% if '@@FORM@@' in category.html|raw %}
            {% set content =  replaced_content|raw %}
            {% for label, messages in app.flashes(['success', 'warning']) %}
                {% for message in messages %}
                    {% set content = content|replace({"@@FORM@@": '<div class="flash-'~label~'">
                        '~message~'
                    </div>@@FORM@@'}) %}
                {% endfor %}
            {% endfor %}
            {% set content =  content|replace({"@@FORM@@": form(contact_form)})|raw %}
            {{ content | raw }}
        {% else %}
            {{ replaced_content | raw }}
        {% endif %}
    {% endblock body %}
    
    {% block javascripts %}
        {{ parent() }}
        {% if category.javascript %}
            <script type="text/javascript">
                {{ category.javascript | raw }}
            </script>
        {% endif %}
    {% endblock %}