1 2 3 4 5 6 7 8
<?php $context = \Timber\Timber::context(); $templates = ['index.twig']; $context['posts'] = new \Timber\PostQuery(); \Timber\Timber::render($templates, $context);