{% extends 'base.html.twig' %} {% block content %}Welcome, {{ name }}!
{% endblock %}
render('index.html.twig', ['name' => 'John']); ?>This PHP code loads the Twig template from the templates directory and renders it with the context variable `name`. It also uses the Twig package library to load and parse the template.