mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-17 12:57:05 +00:00
Correct base template name
The base template name used in $loader1 and $loader2 is actually "base.html", not "base.twig".
This commit is contained in:
+1
-1
@@ -199,7 +199,7 @@ projects where storing all templates in a single PHP file might make sense.
|
|||||||
'base.html' => '{% block content %}{% endblock %}',
|
'base.html' => '{% block content %}{% endblock %}',
|
||||||
));
|
));
|
||||||
$loader2 = new Twig_Loader_Array(array(
|
$loader2 = new Twig_Loader_Array(array(
|
||||||
'index.html' => '{% extends "base.twig" %}{% block content %}Hello {{ name }}{% endblock %}',
|
'index.html' => '{% extends "base.html" %}{% block content %}Hello {{ name }}{% endblock %}',
|
||||||
'base.html' => 'Will never be loaded',
|
'base.html' => 'Will never be loaded',
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user