public function Text_Template::render

Renders the template and returns the result.

Return value

string

1 call to Text_Template::render()
Text_Template::renderTo in drupal/core/vendor/phpunit/php-text-template/Text/Template.php
Renders the template and writes the result to a file.

File

drupal/core/vendor/phpunit/php-text-template/Text/Template.php, line 126

Class

Text_Template
A simple template engine.

Code

public function render() {
  $keys = array();
  foreach ($this->values as $key => $value) {
    $keys[] = '{' . $key . '}';
  }
  return str_replace($keys, $this->values, $this->template);
}