public function Twig_Environment::render

Renders a template.

Parameters

string $name The template name:

array $context An array of parameters to pass to the template:

Return value

string The rendered template

File

drupal/core/vendor/twig/twig/lib/Twig/Environment.php, line 293

Class

Twig_Environment
Stores the Twig configuration.

Code

public function render($name, array $context = array()) {
  return $this
    ->loadTemplate($name)
    ->render($context);
}