Twig/DatatableTwigExtension.php
public function datatableRenderJs(Twig_Environment $twig, AbstractDatatableView $datatable)
    {
        return $twig->render('SgDatatablesBundle:Datatable:datatable_js.html.twig', $this->getOptions($datatable));
    }
public function datatableRenderJs(Twig_Environment $twig, AbstractDatatableView $datatable)
    {
        return $twig->render('SgDatatablesBundle:Datatable:datatable_js.html.twig', $this->getOptions($datatable));
    }
public function datatableRenderJs ( Twig_Environment $ twig , AbstractDatatableView $ datatable ) { return $ twig -> render ( 'SgDatatablesBundle:Datatable:datatable_js.html.twig' , $ this -> getOptions ( $ datatable ) ) ; }
Renders the js template.

@param Twig_Environment      $twig
@param AbstractDatatableView $datatable

@return mixed|string
@throws Exception
Renders the js template .