✨ Add a way to show simple pages
This commit is contained in:
parent
d0fcf2b0b2
commit
bb67e8ea80
2 changed files with 12 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
6
theme/default/simplepage.twig
Normal file
6
theme/default/simplepage.twig
Normal file
|
@ -0,0 +1,6 @@
|
|||
{% extends "base.twig" %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ title }}</h1>
|
||||
{{ content }}
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue