lib/Timber.php
public static function render_string( $string, $data = array() ) {
		$compiled = self::compile_string($string, $data);
		echo $compiled;
		return $compiled;
	}
public static function render_string( $string, $data = array() ) {
		$compiled = self::compile_string($string, $data);
		echo $compiled;
		return $compiled;
	}
public static function render_string ( $ string , $ data = array ( ) ) { $ compiled = self :: compile_string ( $ string , $ data ) ; echo $ compiled ; return $ compiled ; }
Render a string with Twig variables.

@api
@example
```php
$data = array(
'username' => 'Jane Doe',
);

Timber::render_string( 'Hi {{ username }}, I’m a string with a custom Twig variable', $data );
```
@param string $string A string with Twig variables.
@param array  $data   An array of data to use in Twig template.
@return bool|string
Render a string with Twig variables .