private function compileBlockOptions(\Twig_Compiler $compiler, $loopId = null)
    {
        $options = $this->getAttribute('options');

        if (null !== $loopId) {
            $compiler
                ->raw('array_merge(')
                ->subcompile($options)
                ->raw(', array(\'id\' => ')->string($loopId.'__')->raw('.$key)')
                ->raw(')')
            ;
        } else {
            $compiler->subcompile($options);
        }
    }