<?php

namespace Lokalize\Controller;

use App\Controller\App;

class Controller extends App {

    protected function render(string $view, array $params = []): mixed {

        $contents = $this->app->render($view, $params);

        $view = 'lokalize:layouts/layout.php';
        $view .= $this->layout ? " with ".$this->layout:"";

        return $this->app->render($view, \compact('contents'));
    }

}
