public function render($typoScriptPath)
{
try {
$output = $this->evaluateInternal($typoScriptPath, self::BEHAVIOR_EXCEPTION);
if ($this->debugMode) {
$output = sprintf('%1$s<!-- Beginning to render TS path "%2$s" (Context: %3$s) -->%4$s%1$s<!-- End to render TS path "%2$s" (Context: %3$s) -->', chr(10), $typoScriptPath, implode(', ', array_keys($this->getCurrentContext())), $output);
}
} catch (SecurityException $securityException) {
throw $securityException;
} catch (\Exception $exception) {
$output = $this->handleRenderingException($typoScriptPath, $exception);
}
return $output;
}