How to render files without twig in Slim v3

So I want to render files without using twig in Slim v3.

In Slim v2, this is pretty straightforward. For example, I just need to write:

  return $app->render('index.html');

However, all the documentation I see for Slim v3 says I have to include twig packages.

Any way to do this without twig?

Hi! Slim 3 don’t have a default view helper, but if you want to use something very similar to the Slim 2 view, you can use the PHP-View.
You can read more about it here.