public function render(array $views)
    {
        if (!array_key_exists('views', $views)) {
            $views['views'] = array($views);
        }

        $content = '';
        foreach ($views['views'] as $view) {
            $content .= $this->renderView($view);
        }

        return $content;
    }
public function render(array $views)
    {
        if (!array_key_exists('views', $views)) {
            $views['views'] = array($views);
        }

        $content = '';
        foreach ($views['views'] as $view) {
            $content .= $this->renderView($view);
        }

        return $content;
    }
public function render ( array $ views ) { if ( ! array_key_exists ( 'views' , $ views ) ) { $ views [ 'views' ] = array ( $ views ) ; } $ content = '' ; foreach ( $ views [ 'views' ] as $ view ) { $ content .= $ this -> renderView ( $ view ) ; } return $ content ; }
Renders a set of twig templates.

The views are passed as an array argument. Valid arrays are:

array(
"view" => "...",
"options" => array(
"optionName" => "optionValue",
)
)

renders the view specified by the homonym key with the given options

array(
"views" => array(
array(
"view" => "...",
"options" => array(
"optionName" => "optionValue",
)
),
array(
"view" => "...",
"options" => array(
"optionName" => "optionValue",
)
),
),
)

renders the views specified by the views key. The "views" key is mandatory.

When the "options" option is not specified an empty array is used as options array.

@param  array  $views
@return string
Renders a set of twig templates .