src/Leevel/View/Compiler.php
public function ifNodeCompiler(array &$theme): void
    {
        $this->checkNode($theme);
        $attr = $this->getNodeAttribute($theme);

        $attr['condition'] = $this->parseContentIf($attr['condition']);
        $theme['content'] = $this->withPhpTag('if ('.$attr['condition'].'):').
            $this->getNodeBody($theme).
            $this->withPhpTag('endif;');
    }
public function ifNodeCompiler(array &$theme): void
    {
        $this->checkNode($theme);
        $attr = $this->getNodeAttribute($theme);

        $attr['condition'] = $this->parseContentIf($attr['condition']);
        $theme['content'] = $this->withPhpTag('if ('.$attr['condition'].'):').
            $this->getNodeBody($theme).
            $this->withPhpTag('endif;');
    }
if.

@param array $theme