From 882f44b0d3203330b78e4600bbc0387f9c538020 Mon Sep 17 00:00:00 2001 From: Fabien Schurter Date: Thu, 16 Oct 2014 09:32:46 +0200 Subject: [PATCH] Correct base template name The base template name used in $loader1 and $loader2 is actually "base.html", not "base.twig". --- doc/api.rst | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/doc/api.rst b/doc/api.rst index 456754b..7756127 100644 --- 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', )); -- 1.7.2.5