Compiler.php
protected function compileBlock(Node $node)
    {

        $name = $node->name;

        if (!$name)
            return $this->createCode(
                '$__scope = \\Tale\\Jade\\Compiler\\create_scope(get_defined_vars()); '.
                'echo isset($__block) && $__block instanceof \Closure ? $__block($__scope) : \'\'; '.
                'unset($__scope);'
            );

        //At this point the code knows this block only, since handleBlock took care of the blocks previously
        return $this->compileChildren($node->children, false);
    }
protected function compileBlock(Node $node)
    {

        $name = $node->name;

        if (!$name)
            return $this->createCode(
                '$__scope = \\Tale\\Jade\\Compiler\\create_scope(get_defined_vars()); '.
                'echo isset($__block) && $__block instanceof \Closure ? $__block($__scope) : \'\'; '.
                'unset($__scope);'
            );

        //At this point the code knows this block only, since handleBlock took care of the blocks previously
        return $this->compileChildren($node->children, false);
    }
protected function compileBlock ( Node $ node ) { $ name = $ node -> name ; if ( ! $ name ) return $ this -> createCode ( '$__scope = \\Tale\\Jade\\Compiler\\create_scope(get_defined_vars()); ' . 'echo isset($__block) && $__block instanceof \Closure ? $__block($__scope) : \'\'; ' . 'unset($__scope);' ) ; //At this point the code knows this block only, since handleBlock took care of the blocks previously return $ this -> compileChildren ( $ node -> children , false ) ; }
Compiles a block node into PHTML.

A single block node without a name or mode will act as a wrapper
for blocks inside mixins

@param Node $node the block node to compile

@return string The compiled PHTML
Compiles a block node into PHTML .