first commit

This commit is contained in:
julien
2026-02-22 14:36:40 +01:00
commit ebcd2f007f
11 changed files with 319 additions and 0 deletions

14
views/posts.twig Normal file
View File

@@ -0,0 +1,14 @@
{% extends "layout.twig" %}
{% block title %}Articles{% endblock %}
{% block content %}
{% for post in posts %}
<div class="post">
<h2>{{ post.title }}</h2>
<p>{{ post.content|nl2br }}</p>
</div>
{% else %}
<p>Aucun article publié.</p>
{% endfor %}
{% endblock %}