Tale\Jade\Parser::handleMixin PHP Method

handleMixin() protected method

Mixins can't be inside other mixins. We use $_inMixin and $_mixinLevel for that $_mixinLevel gets reset in handleOutdent
protected handleMixin ( array $token )
$token array the -token
    protected function handleMixin(array $token)
    {
        if ($this->inMixin) {
            $this->throwException("Failed to define mixin {$token['name']}: Mixins can't be nested. Please each mixin outside of each other.");
        }
        $node = $this->createNode('mixin', $token);
        $node->name = $token['name'];
        $node->attributes = [];
        $node->assignments = [];
        $this->inMixin = true;
        $this->mixinLevel = $this->level;
        $this->current = $node;
    }