Tale\Jade\Parser::handleBlock PHP Method

handleBlock() protected method

Blocks outside a mixin always need a name! (That's what $_inMixin is for)
protected handleBlock ( array $token )
$token array the -token
    protected function handleBlock(array $token)
    {
        $node = $this->createNode('block', $token);
        $node->name = isset($token['name']) ? $token['name'] : null;
        $node->mode = isset($token['mode']) ? $token['mode'] : null;
        if (!$node->name && !$this->inMixin) {
            $this->throwException("Blocks outside of a mixin always need a valid name.");
        }
        $this->current = $node;
        $this->expectEnd($token);
    }