base.html.twig 826 B

1234567891011121314151617181920212223242526272829303132
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>{% block title %}Test application{% endblock %}</title>
  6. {% block stylesheets %}{% endblock %}
  7. </head>
  8. <body>
  9. <div id="sidebar">
  10. {% block sidebar %}
  11. <ul>
  12. <li><a href="/">Home</a></li>
  13. <li><a href="/blog">Blog</a></li>
  14. </ul>
  15. {% endblock %}
  16. </div>
  17. <div id="messages">
  18. {% for message in app.flashes('info') %}
  19. <div class="flash-info">
  20. {{ message }}
  21. </div>
  22. {% endfor %}
  23. </div>
  24. <div id="content">
  25. {% block body %}{% endblock %}
  26. </div>
  27. {% block javascripts %}{% endblock %}
  28. </body>
  29. </html>