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:
Fabien Potencier
2014-10-16 10:31:48 +02:00
+1 -1
View File
@@ -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',
));