mustache = $mustache; $this->context = $context; } /** * Render a string as a Mustache template with the current rendering context. * * @param string $string * * @return Rendered template. */ public function render($string) { return $this->mustache ->loadLambda((string) $string) ->renderInternal($this->context); } }