Port entirely to a MVC-like pattern #37

Open
kazhnuz wants to merge 29 commits from refactor/use-bludit-boot-code into main
2 changed files with 12 additions and 0 deletions
Showing only changes of commit bb67e8ea80 - Show all commits

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 %}