think\Template::getIncludeTagLib PHP Method

getIncludeTagLib() private method

搜索模板页面中包含的TagLib库 并返回列表
private getIncludeTagLib ( string &$content ) : array | null
$content string 模板内容
return array | null
    private function getIncludeTagLib(&$content)
    {
        // 搜索是否有TagLib标签
        if (preg_match($this->getRegex('taglib'), $content, $matches)) {
            // 替换TagLib标签
            $content = str_replace($matches[0], '', $content);
            return explode(',', $matches['name']);
        }
        return null;
    }