* @return Response The rendered view
*/
public function index(Request $request, string $path): Response {
+ //Set title
+ $this->context['title'] = [
+ 'page' => 'Page title',
+ 'section' => 'Section title',
+ 'site' => 'Site title'
+ ];
+
+ //Set canonical
+ $this->context['canonical'] = '';
+
//Render template
$response = $this->twig->render('@RapsysTree/index.html.twig', $this->context);
+ var_dump($response);
+ exit;
$response->setEtag(md5($response->getContent()));
$response->setPublic();
$response->isNotModified($request);