]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - vendor/twig/twig/lib/Twig/TemplateInterface.php
4 * This file is part of Twig.
6 * (c) 2009 Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
13 * Interface implemented by all compiled templates.
15 * @author Fabien Potencier <fabien@symfony.com>
16 * @deprecated since 1.12 (to be removed in 2.0)
18 interface Twig_TemplateInterface
20 const ANY_CALL
= 'any';
21 const ARRAY_CALL
= 'array';
22 const METHOD_CALL
= 'method';
25 * Renders the template with the given context and returns it as string.
27 * @param array $context An array of parameters to pass to the template
29 * @return string The rendered template
31 public function render(array $context);
34 * Displays the template with the given context.
36 * @param array $context An array of parameters to pass to the template
37 * @param array $blocks An array of blocks to pass to the template
39 public function display(array $context, array $blocks = array());
42 * Returns the bound environment for this template.
44 * @return Twig_Environment The current environment
46 public function getEnvironment();