mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-01 16:45:50 +00:00
16 lines
356 B
Plaintext
16 lines
356 B
Plaintext
--TEST--
|
|
Exception for an undefined template in a child template
|
|
--TEMPLATE--
|
|
{% extends 'base.twig' %}
|
|
|
|
{% block sidebar %}
|
|
{{ include('include.twig') }}
|
|
{% endblock %}
|
|
--TEMPLATE(base.twig)--
|
|
{% block sidebar %}
|
|
{% endblock %}
|
|
--DATA--
|
|
return []
|
|
--EXCEPTION--
|
|
Twig\Error\LoaderError: Template "include.twig" is not defined in "index.twig" at line 5.
|