src/Leevel/View/Compiler.php
public function variableCodeCompiler(array &$theme): void
    {
        $theme['content'] = !empty($theme['content']) ?
            $this->parseContent($theme['content']) : null;

        if (null !== $theme['content']) {
            $theme['content'] = $this->withPhpTag('echo '.$theme['content'].';');
        }

        $theme['content'] = $this->encodeContent($theme['content']);
    }
public function variableCodeCompiler(array &$theme): void
    {
        $theme['content'] = !empty($theme['content']) ?
            $this->parseContent($theme['content']) : null;

        if (null !== $theme['content']) {
            $theme['content'] = $this->withPhpTag('echo '.$theme['content'].';');
        }

        $theme['content'] = $this->encodeContent($theme['content']);
    }
变量.

@param array $theme