Tale\Jade\Parser::handleTag PHP Метод

handleTag() защищенный Метод

If no $_current element exists, a new one is created A tag can only exist once on an element Only elements can have tags
protected handleTag ( array $token )
$token array the -token
    protected function handleTag(array $token)
    {
        if (!$this->current) {
            $this->current = $this->createElement();
        }
        if ($this->current->type !== 'element') {
            $this->throwException("Tags can only be used on elements, not on {$this->current->type}", $token);
        }
        if ($this->current->tag) {
            $this->throwException('This element already has a tag name, you can\'t pass a second one', $token);
        }
        $this->current->tag = $token['name'];
    }