mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
minor #1546 [doc] [api.rst] Correct base template name (fabschurt)
This PR was merged into the 1.16-dev branch.
Discussion
----------
[doc] [api.rst] Correct base template name
The base template name used in $loader1 and $loader2 is actually "base.html", not "base.twig".
Commits
-------
882f44b Correct base template name
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 %}',
|
||||
));
|
||||
$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',
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user