data = Page::convert($page, $heartbeat)->export(); } public function raw() { return $this->data; } public function display() { $twig_config = []; if (ENABLE_TWIG_CACHE) $twig_config["cache"] = "../cache/twig/"; $loader = new \Twig\Loader\FilesystemLoader("../view/"); $twig = new \Twig\Environment($loader, $twig_config); $twig->addFilter(\Filters\timeago()); $twig->addFilter(\Filters\isof()); echo $twig->render('index.twig', $this->data); } }