Builder/Admin/BaseBuilder.php
public function parseStringWithTwig($template, $options = array())
    {
        $loader = new \Twig_Loader_String();
        $twig = new \Twig_Environment(
            $loader,
            array(
                'autoescape' => false,
                'strict_variables' => true,
                'debug' => true,
                'cache' => $this->getGenerator()->getTempDir(),
            )
        );
        $this->addTwigExtensions($twig, $loader);
        $this->addTwigFilters($twig);

        $template = $twig->loadTemplate($template);

        return $template->render($options);
    }
public function parseStringWithTwig($template, $options = array())
    {
        $loader = new \Twig_Loader_String();
        $twig = new \Twig_Environment(
            $loader,
            array(
                'autoescape' => false,
                'strict_variables' => true,
                'debug' => true,
                'cache' => $this->getGenerator()->getTempDir(),
            )
        );
        $this->addTwigExtensions($twig, $loader);
        $this->addTwigFilters($twig);

        $template = $twig->loadTemplate($template);

        return $template->render($options);
    }
public function parseStringWithTwig ( $ template , $ options = array ( ) ) { $ loader = new \ Twig_Loader_String ( ) ; $ twig = new \ Twig_Environment ( $ loader , array ( 'autoescape' => false , 'strict_variables' => true , 'debug' => true , 'cache' => $ this -> getGenerator ( ) -> getTempDir ( ) , ) ) ; $ this -> addTwigExtensions ( $ twig , $ loader ) ; $ this -> addTwigFilters ( $ twig ) ; $ template = $ twig -> loadTemplate ( $ template ) ; return $ template -> render ( $ options ) ; }
Parse a little template with twig for yaml options
From @sescandell: is this function still used????
Parse a little template with twig for yaml options From