src/Zicht/Bundle/FrameworkExtraBundle/Twig/ControlStructures/WithNode.php
public function compileArgument($compiler, $argument)
    {
        if (empty($argument['name'])) {
            $compiler
                ->write('(array) ')
                ->subcompile($argument['value']);
        } else {
            $compiler
                ->write('array(')
                ->repr($argument['name'])
                ->raw(' => ')
                ->subcompile($argument['value'])
                ->raw(')');
        }
    }
public function compileArgument($compiler, $argument)
    {
        if (empty($argument['name'])) {
            $compiler
                ->write('(array) ')
                ->subcompile($argument['value']);
        } else {
            $compiler
                ->write('array(')
                ->repr($argument['name'])
                ->raw(' => ')
                ->subcompile($argument['value'])
                ->raw(')');
        }
    }
public function compileArgument ( $ compiler , $ argument ) { if ( empty ( $ argument [ 'name' ] ) ) { $ compiler -> write ( '(array) ' ) -> subcompile ( $ argument [ 'value' ] ) ; } else { $ compiler -> write ( 'array(' ) -> repr ( $ argument [ 'name' ] ) -> raw ( ' => ' ) -> subcompile ( $ argument [ 'value' ] ) -> raw ( ')' ) ; } }
Compiles the 'with' argument.

@param Twig_Compiler $compiler
@param mixed $argument
@return void
Compiles the with argument .