Add a way to show simple pages

This commit is contained in:
Kazhnuz 2025-03-29 10:17:13 +01:00
parent d0fcf2b0b2
commit bb67e8ea80
2 changed files with 12 additions and 0 deletions

View file

@ -54,4 +54,10 @@ class Renderer {
header("Location: " . $redirection);
die();
}
public function simple($title, $content) {
$this->prepare("title", $title);
$this->prepare("content", $content);
$this->render("simplepage.twig");
}
}

View file

@ -0,0 +1,6 @@
{% extends "base.twig" %}
{% block content %}
<h1>{{ title }}</h1>
{{ content }}
{% endblock %}