projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
91a3660
)
Correct base template name
author
Fabien Schurter
<fabien.schurter@gmail.com>
Thu, 16 Oct 2014 07:32:46 +0000 (09:32 +0200)
committer
Fabien Schurter
<fabien.schurter@gmail.com>
Thu, 16 Oct 2014 07:32:46 +0000 (09:32 +0200)
The base template name used in $loader1 and $loader2 is actually
"base.html", not "base.twig".
doc/api.rst
patch
|
blob
|
history
diff --git
a/doc/api.rst
b/doc/api.rst
index
456754b
..
7756127
100644
(file)
--- a/
doc/api.rst
+++ b/
doc/api.rst
@@
-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',
));