protected function initTagName(Tag $tag) { if (isset($tag->buffer)) { if (preg_match('`^[a-z][a-zA-Z0-9]+(?!\\()`', $tag->name)) { $tag->name = '$' . $tag->name; } $tag->name = trim($this->createCode('echo ' . $tag->name . ';')); } }