public function javascriptTemplateRender($templateName, $viewData) {
    /** @var $templateEngine \Twig_Environment */
    $templateEngine = $this->getTemplateEnv();
    return $templateEngine->render($templateName, $viewData);
  }
public function javascriptTemplateRender($templateName, $viewData) {
    /** @var $templateEngine \Twig_Environment */
    $templateEngine = $this->getTemplateEnv();
    return $templateEngine->render($templateName, $viewData);
  }
public function javascriptTemplateRender ( $ templateName , $ viewData ) { /** @var $templateEngine \Twig_Environment */ $ templateEngine = $ this -> getTemplateEnv ( ) ; return $ templateEngine -> render ( $ templateName , $ viewData ) ; }
Returns a javascript script via twig template engine
@param $templateName
@param $viewData
@return string
Returns a javascript script via twig template engine